mirror of
https://github.com/skidoodle/iphistory.git
synced 2025-02-15 08:29:16 +01:00
Update Dockerfile
This commit is contained in:
parent
cc0874008d
commit
803c39d62e
1 changed files with 1 additions and 3 deletions
|
@ -1,7 +1,5 @@
|
||||||
FROM golang:alpine as builder
|
FROM golang:alpine as builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY go.mod go.sum ./
|
|
||||||
RUN go mod download
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN go build -o iphistory .
|
RUN go build -o iphistory .
|
||||||
|
|
||||||
|
@ -9,5 +7,5 @@ FROM alpine:latest
|
||||||
RUN apk --no-cache add ca-certificates
|
RUN apk --no-cache add ca-certificates
|
||||||
WORKDIR /root/
|
WORKDIR /root/
|
||||||
COPY --from=builder /app/iphistory .
|
COPY --from=builder /app/iphistory .
|
||||||
EXPOSE 3000
|
EXPOSE 8080
|
||||||
CMD ["./iphistory"]
|
CMD ["./iphistory"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue