Made it work again
continuous-integration/drone/pr Build was killed Details
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2019-06-02 16:22:13 +02:00
parent 1678570ed4
commit 24d9b27fb6
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 6 additions and 6 deletions

View File

@ -21,17 +21,17 @@ RUN if [ -n "${VIKUNJA_VERSION}" ]; then git checkout "${VIKUNJA_VERSION}"; fi \
###################
# The actual image
FROM scratch
# Note: I wanted to use the scratch image here, but unfortunatly the go-sqlite bindings require cgo and
# for whatever reason, the container would not start when I compiled the image without cgo.
FROM alpine:3.9
LABEL maintainer="maintainers@vikunja.io"
EXPOSE 3456
COPY --from=build-env /etc/passwd /etc/passwd
USER nobody:nogroup
WORKDIR /app/vikunja/
COPY --from=build-env /go/src/code.vikunja.io/api/templates ./templates
COPY --from=build-env /go/src/code.vikunja.io/api/vikunja .
RUN chown nobody:nogroup -R /app/vikunja
ENV VIKUNJA_SERVICE_ROOTPATH=/app/vikunja/
USER nobody:nogroup
CMD ["/app/vikunja/vikunja"]
EXPOSE 3456