docker
This commit is contained in:
parent
f93a0ebcd4
commit
3995617db6
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@ -0,0 +1,9 @@
|
||||
FROM golang AS build
|
||||
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 go build -o app
|
||||
|
||||
FROM scratch
|
||||
COPY --from=build --chown=0:0 --chmod=555 /app/app /app/app
|
||||
ENTRYPOINT ["/app/app"]
|
Loading…
Reference in New Issue
Block a user