0
Fork 0
mirror of https://codeberg.org/SafeTwitch/safetwitch-backend.git synced 2024-12-22 13:13:00 -05:00

Update 'Dockerfile'

Podman support
This commit is contained in:
dragongoose 2023-06-07 21:21:23 +00:00
parent 171857e8b4
commit e73f32a0c0

View file

@ -1,4 +1,4 @@
FROM golang:1.20.3 as builder FROM docker.io/golang:1.20.3 as builder
# Create and change to the app directory. # Create and change to the app directory.
WORKDIR /app WORKDIR /app
@ -9,7 +9,7 @@ COPY . ./
RUN CGO_ENABLED=0 GOOS=linux go build -mod=readonly -v -o server RUN CGO_ENABLED=0 GOOS=linux go build -mod=readonly -v -o server
FROM alpine:3 FROM docker.io/alpine:3
RUN apk add --no-cache ca-certificates RUN apk add --no-cache ca-certificates
COPY --from=builder /app/server /server COPY --from=builder /app/server /server