goshorly/Dockerfile

11 lines
148 B
Docker
Raw Normal View History

2021-12-07 15:21:49 +00:00
FROM golang:alpine
2021-12-07 14:49:58 +00:00
2021-12-07 15:15:19 +00:00
WORKDIR /go/src/git.ucode.space/goshortly
2021-12-07 14:49:58 +00:00
2021-12-07 15:15:19 +00:00
COPY . .
2021-12-07 14:49:58 +00:00
2021-12-07 15:21:49 +00:00
RUN apk add gcc libgo
2021-12-07 15:15:19 +00:00
RUN go get -d -v ./...
2021-12-07 14:49:58 +00:00
2021-12-07 15:15:19 +00:00
CMD ["go", "run", "main.go"]