Dockerfile for releases
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
FROM alpine:3.5 | |
ARG APP | |
EXPOSE 5000 | |
EXPOSE 4369 | |
ENV PORT=5000 \ | |
MIX_ENV=prod | |
RUN apk --no-cache add ncurses openssl | |
COPY releases/$APP /opt/$APP | |
RUN mkdir -p /opt/$APP/log | |
RUN \ | |
cd /opt/$APP && \ | |
chmod -R 777 /opt/$APP && \ | |
ln -s /opt/$APP/bin/$APP /opt/$APP/bin/app | |
ENV PATH /opt/$APP/bin:/opt/$APP/erts-8.3/bin:$PATH | |
WORKDIR /opt/$APP | |
COPY releases/run run | |
CMD ./run foreground |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment