fix(tz): add tzdata to docker image
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
2d206826d6
commit
a7ecb1a6f8
@ -1,6 +1,6 @@
|
|||||||
# Certificate Store
|
# Certificates & Timezones
|
||||||
FROM alpine AS certs
|
FROM alpine AS alpine
|
||||||
RUN apk update && apk add ca-certificates
|
RUN apk update && apk add --no-cache ca-certificates tzdata
|
||||||
|
|
||||||
# Build Image
|
# Build Image
|
||||||
FROM golang:1.21 AS build
|
FROM golang:1.21 AS build
|
||||||
@ -19,7 +19,8 @@ RUN go build \
|
|||||||
|
|
||||||
# Create Image
|
# Create Image
|
||||||
FROM busybox:1.36
|
FROM busybox:1.36
|
||||||
COPY --from=certs /etc/ssl/certs /etc/ssl/certs
|
COPY --from=alpine /etc/ssl/certs /etc/ssl/certs
|
||||||
|
COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo
|
||||||
COPY --from=build /opt/antholume /opt/antholume
|
COPY --from=build /opt/antholume /opt/antholume
|
||||||
WORKDIR /opt/antholume
|
WORKDIR /opt/antholume
|
||||||
EXPOSE 8585
|
EXPOSE 8585
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Certificate Store
|
# Certificates & Timezones
|
||||||
FROM alpine AS certs
|
FROM alpine AS alpine
|
||||||
RUN apk update && apk add ca-certificates
|
RUN apk update && apk add --no-cache ca-certificates tzdata
|
||||||
|
|
||||||
# Build Image
|
# Build Image
|
||||||
FROM --platform=$BUILDPLATFORM golang:1.21 AS build
|
FROM --platform=$BUILDPLATFORM golang:1.21 AS build
|
||||||
@ -21,7 +21,8 @@ RUN --mount=target=. \
|
|||||||
|
|
||||||
# Create Image
|
# Create Image
|
||||||
FROM busybox:1.36
|
FROM busybox:1.36
|
||||||
COPY --from=certs /etc/ssl/certs /etc/ssl/certs
|
COPY --from=alpine /etc/ssl/certs /etc/ssl/certs
|
||||||
|
COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo
|
||||||
COPY --from=build /opt/antholume /opt/antholume
|
COPY --from=build /opt/antholume /opt/antholume
|
||||||
WORKDIR /opt/antholume
|
WORKDIR /opt/antholume
|
||||||
EXPOSE 8585
|
EXPOSE 8585
|
||||||
|
Loading…
Reference in New Issue
Block a user