Skip to content

Commit

Permalink
Expose default port (docker) (#120)
Browse files Browse the repository at this point in the history
Expose default (with arg) port
  • Loading branch information
JDPDO authored Apr 20, 2022
1 parent 2c5fa08 commit d43d003
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ops/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,15 @@ RUN mix deps.clean mime --build && \

FROM elixir:1.12-alpine
ENV HOME=/opt/app

WORKDIR ${HOME}
COPY --from=build _build/prod/rel/keila ${HOME}
RUN mkdir -p ${HOME} && \
adduser -s /bin/sh -u 1001 -G root -h ${HOME} -S -D default && \
chown -R 1001:0 ${HOME}
ENTRYPOINT ["/opt/app/bin/keila"]
CMD ["start"]

ARG PORT=4000
ENV PORT=${PORT}
EXPOSE ${PORT}/tcp

0 comments on commit d43d003

Please sign in to comment.