Commit 6f4ac1a3 authored by Johannes Loher's avatar Johannes Loher

improve Dockerfile for caching

parent 36ba1da0
Pipeline #110 passed with stage
in 6 minutes and 24 seconds
......@@ -2,14 +2,10 @@ FROM dlang2/dmd-ubuntu:2.083.0 as build
WORKDIR /dlang/vibe-docker
COPY . .
RUN useradd --user-group --create-home --shell /bin/false app && \
chown -R app:app /dlang/vibe-docker
USER app
RUN dub build --build=release
FROM ubuntu:17.10
EXPOSE 8080
ENV DEBIAN_FRONTEND=noninteractive
RUN set -ex && \
......@@ -24,6 +20,4 @@ RUN useradd --user-group --create-home --shell /bin/false app && \
chown -R app:app /dlang/vibe-docker
USER app
EXPOSE 8080
CMD ["/dlang/vibe-docker/vibe-docker"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment