glance/Dockerfile.single-platform

15 lines
209 B
Docker
Raw Normal View History

2024-08-05 01:00:11 +02:00
FROM golang:1.22.5-alpine3.20 AS builder
WORKDIR /app
COPY . /app
RUN CGO_ENABLED=0 go build .
2024-08-05 01:00:11 +02:00
FROM alpine:3.20.2
WORKDIR /app
COPY --from=builder /app/glance .
EXPOSE 8080/tcp
ENTRYPOINT ["/app/glance"]