Made it work again
This commit is contained in:
parent
1678570ed4
commit
24d9b27fb6
12
Dockerfile
12
Dockerfile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue