mirror of
https://github.com/correl/riichi.git
synced 2024-11-23 19:19:55 +00:00
17 lines
486 B
Docker
17 lines
486 B
Docker
FROM erlang:19.3 as builder
|
|
MAINTAINER Correl Roush <correl@gmail.com>
|
|
|
|
WORKDIR /home/build
|
|
RUN apt-get update \
|
|
&& apt-get -y install curl gnupg \
|
|
&& curl -sL https://deb.nodesource.com/setup_11.x | bash - \
|
|
&& apt-get -y install nodejs
|
|
COPY . /home/build
|
|
RUN rebar3 as prod release
|
|
|
|
FROM erlang:19.3-slim
|
|
WORKDIR /home/app
|
|
ENV RELX_REPLACE_OS_VARS true
|
|
COPY --from=builder /home/build/_build/prod/rel/riichi /home/app
|
|
EXPOSE 8080 8080
|
|
ENTRYPOINT ["/home/app/bin/riichi"]
|