vibe-docker/Dockerfile

13 lines
239 B
Docker

FROM dlang2/dmd-ubuntu
WORKDIR /dlang/vibe-docker
COPY . .
RUN useradd --user-group --create-home --shell /bin/false app
RUN chown -R app:app /dlang/vibe-docker
USER app
RUN dub build
EXPOSE 8080
CMD ["/dlang/vibe-docker/vibe-docker"]