Initial implementation
This commit is contained in:
1 parent
bb4f465321
commit
2172b8232e
16 files changed
+838
-57
No files matched your search
+3
-3
@@ -10,10 +10,10 @@ COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
ENV CGO_ENABLED=0
|
||||
RUN go build -tags timetzdata template
|
||||
RUN go build -tags timetzdata holiday-api
|
||||
|
||||
### Stage 2: Run ###
|
||||
FROM scratch
|
||||
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||
COPY --from=go-build /root/template /usr/bin/template
|
||||
ENTRYPOINT ["template"]
|
||||
COPY --from=go-build /root/holiday-api /usr/bin/holiday-api
|
||||
ENTRYPOINT ["holiday-api"]
|
||||
Reference in new issue
Block a user