Files
gitignore.io/Dockerfile
2020-07-28 11:40:05 +02:00

11 lines
276 B
Docker

FROM swift:4.2.4
WORKDIR /app
ADD . ./
RUN git submodule update --init --recursive
RUN swift package clean
RUN swift build -c release
RUN mkdir /app/bin
RUN mv `swift build -c release --show-bin-path` /app/bin
EXPOSE 8080
ENTRYPOINT ./bin/release/Run serve -e prod -b 0.0.0.0