-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/add dockerfile for newest LTS builds #81
Open
IamfromSpace
wants to merge
7
commits into
master
Choose a base branch
from
feature/add-dockerfile-for-newest-lts-builds
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
fe8c83c
Add a Dockerfile that seems to build compatible binaries.
IamfromSpace 45a3d41
Use lambci/lambda as a base image.
IamfromSpace 8dadaf0
Remove unneeded dependency (bash) and re-order Dockerfile for greater…
IamfromSpace 416d7e4
Add documentation for how to use the local Dockerfile for building th…
IamfromSpace 34efb3b
Add comments to Dockerfile.
IamfromSpace 56fc4b4
Fix missing arg in README for docker build.
IamfromSpace 4e0bae6
Add specific advice for building cryptonite 0.27 in the README.
IamfromSpace File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Start from the Lambda Env mirror | ||
FROM lambci/lambda:provided | ||
|
||
# Switch to root, so we can install packages and configure users | ||
USER root | ||
|
||
# Install packages required for building GHC | ||
RUN yum -y install gcc gmp-devel zlib-devel | ||
|
||
# Give users access to /tmp, as stack uses it to build GHC | ||
RUN chmod a=rwx,o+t /tmp | ||
|
||
# Custom stack images require a stack group and stack user in the stack group | ||
RUN /usr/sbin/groupadd stack | ||
RUN /usr/sbin/useradd stack -g stack | ||
|
||
# Switch to the stack user so we can setup its home directory | ||
USER stack | ||
RUN mkdir ~/.stack | ||
ENV PATH=/usr/sbin:$HOME/.local/bin:$PATH | ||
RUN mkdir -p ~/.local/bin | ||
|
||
# Install stack | ||
RUN curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack' | ||
|
||
# Switch back to the root user | ||
USER root | ||
|
||
# Disable the default `lambdci/lambda` entrypoint | ||
ENTRYPOINT [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Caught by @samhh, this is missing
build
in the command.