Update Dockerfile

This commit is contained in:
skidoodle 2024-05-31 13:04:51 +02:00 committed by GitHub
parent cc0874008d
commit 803c39d62e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,7 +1,5 @@
FROM golang:alpine as builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -o iphistory .
@ -9,5 +7,5 @@ FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /root/
COPY --from=builder /app/iphistory .
EXPOSE 3000
EXPOSE 8080
CMD ["./iphistory"]