mirror of
https://github.com/KevinMidboe/planetposen-images.git
synced 2025-10-29 13:20:11 +00:00
Dockerfile creates volumes for secrets & logs
- Renamed logs folder to kebab-case - All logger error variables renamed to err
This commit is contained in:
@@ -16,6 +16,14 @@ EXPOSE 8000
|
||||
|
||||
RUN apk add --no-cache ca-certificates
|
||||
|
||||
RUN mkdir -p /etc/secrets
|
||||
VOLUME /etc/secrets
|
||||
|
||||
RUN mkdir -p /var/log/planetposen-logs
|
||||
VOLUME /var/log/planetposen-logs
|
||||
|
||||
COPY --from=builder /go/src/github.com/kevinmidboe/planetposen-images .
|
||||
|
||||
ENV GOOGLE_APPLICATION_CREDENTIALS=/etc/secrets/sa-key.json
|
||||
|
||||
CMD ["./main"]
|
||||
Reference in New Issue
Block a user