mirror of
https://github.com/lukaszraczylo/semver-generator.git
synced 2026-07-11 04:31:48 +00:00
Update dockerfile.
This commit is contained in:
+3
-7
@@ -1,17 +1,13 @@
|
|||||||
# syntax=docker/dockerfile:1.2.1-labs
|
FROM golang:1-bullseye as baseimg
|
||||||
|
|
||||||
FROM golang:1-alpine as baseimg
|
|
||||||
|
|
||||||
RUN apk add --no-cache make ca-certificates
|
|
||||||
WORKDIR /go/src/app
|
WORKDIR /go/src/app
|
||||||
ENV GO111MODULE=on CGO_ENABLED=1 GOOS=linux
|
ENV GO111MODULE=on CGO_ENABLED=1 GOOS=linux
|
||||||
COPY . /go/src/app/
|
COPY . /go/src/app/
|
||||||
RUN make build
|
RUN make build
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM ubuntu:jammy
|
||||||
WORKDIR /go/src/app
|
WORKDIR /go/src/app
|
||||||
RUN apk upgrade --available
|
# COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||||
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
||||||
COPY --from=baseimg /go/src/app/semver-gen .
|
COPY --from=baseimg /go/src/app/semver-gen .
|
||||||
COPY --from=baseimg /go/src/app/config-release.yaml config.yaml
|
COPY --from=baseimg /go/src/app/config-release.yaml config.yaml
|
||||||
COPY --from=baseimg /go/src/app/entrypoint.sh /entrypoint.sh
|
COPY --from=baseimg /go/src/app/entrypoint.sh /entrypoint.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user