Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch docker base image to 'phusion/baseimage'
- Loading branch information
Showing
2 changed files
with
34 additions
and
17 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
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,23 +1,31 @@ | ||
FROM bitwalker/alpine-erlang:19.2.1b | ||
FROM phusion/baseimage | ||
|
||
RUN apk update && \ | ||
apk --no-cache --update add libgcc libstdc++ && \ | ||
rm -rf /var/cache/apk/* | ||
ENV LANG en_US.UTF-8 | ||
ENV LANGUAGE en_US.UTF-8 | ||
ENV LC_ALL en_US.UTF-8 | ||
|
||
# required packages | ||
RUN apt-get update && apt-get upgrade -y && apt-get install -y \ | ||
bash \ | ||
bash-completion \ | ||
curl \ | ||
dnsutils \ | ||
vim && \ | ||
apt-get clean | ||
|
||
EXPOSE 8443 | ||
ENV PUSH_HTTPS_BIND_ADDR=0.0.0.0 PUSH_HTTPS_PORT=8443 MIX_ENV=prod \ | ||
REPLACE_OS_VARS=true SHELL=/bin/sh | ||
REPLACE_OS_VARS=true SHELL=/bin/bash | ||
|
||
WORKDIR /opt/app | ||
|
||
ADD mongoose_push.tar.gz ./ | ||
RUN chown -R default ./releases | ||
|
||
# Move priv dir | ||
RUN mv $(find lib -name mongoose_push-*)/priv . | ||
RUN ln -s $(pwd)/priv $(find lib -name mongoose_push-*)/priv | ||
|
||
USER default | ||
|
||
VOLUME /opt/app/priv | ||
|
||
CMD ["foreground"] | ||
CMD ["console"] | ||
ENTRYPOINT ["/opt/app/bin/mongoose_push"] |