Dockerfile

Daniel Tanaka 1 year ago
parent f4e2ea5b8a commit 632b5c4c5e07de7cc30c55bc0716ddb66d43b3a8
1 changed files with 10 additions and 0 deletions
+10-0Dockerfile ADDED
View File
@@ -0,0 +1,10 @@
1+FROM golang:1.23-alpine AS build
2+WORKDIR /src
3+COPY . .
4+RUN go build -o /playground .
5+
6+FROM alpine:3.20
7+RUN apk add --no-cache docker-cli
8+COPY --from=build /playground /usr/local/bin/
9+EXPOSE 8088
10+CMD ["playground"]