glance/Dockerfile

14 lines
206 B
Docker
Raw Normal View History

2024-08-07 19:50:06 +02:00
FROM golang:1.22.5-alpine3.20 AS builder
WORKDIR /app
COPY . /app
RUN CGO_ENABLED=0 go build .
2024-04-27 21:10:24 +02:00
2024-08-07 19:50:06 +02:00
FROM alpine:3.20
2024-04-27 21:10:24 +02:00
WORKDIR /app
2024-08-07 19:50:06 +02:00
COPY --from=builder /app/glance .
2024-04-27 21:10:24 +02:00
EXPOSE 8080/tcp
ENTRYPOINT ["/app/glance"]