forked from CrowdHailer/elixir-on-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ec7c58
commit 54853f9
Showing
5 changed files
with
13 additions
and
24 deletions.
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 |
---|---|---|
@@ -1,21 +1,15 @@ | ||
FROM elixir:1.5.1 | ||
|
||
# Important! Update this no-op ENV variable when this Dockerfile | ||
# is updated with the current date. It will force refresh of all | ||
# of the base images and things like `apt-get update` won't be using | ||
# old cached versions when the Dockerfile is built. | ||
ENV REFRESHED_AT=2017-08-22 | ||
|
||
RUN apt-get update && apt-get install -y inotify-tools | ||
|
||
RUN mix local.hex --force && mix local.rebar --force | ||
ARG CONTAINER_USER='elixir' | ||
|
||
COPY mix.* /app/ | ||
COPY config /app/config | ||
RUN cd /app && mix deps.get && mix deps.compile | ||
ARG APP_DIR=/home/"${CONTAINER_USER}"/app | ||
|
||
COPY . /app | ||
RUN useradd -m -u 1000 -s /usr/bin/bash "${CONTAINER_USER}" | ||
|
||
WORKDIR /app | ||
USER "${CONTAINER_USER}" | ||
|
||
CMD iex -S mix | ||
WORKDIR "${APP_DIR}" | ||
|
||
RUN mix local.hex --force && mix local.rebar --force |
This file was deleted.
Oops, something went wrong.
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
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
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