chore: add dockerfile
This commit is contained in:
parent
fa8e0c0030
commit
902e14b8ae
1 changed files with 11 additions and 0 deletions
11
Dockerfile
Normal file
11
Dockerfile
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
FROM golang:1.24 AS build
|
||||
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY ./ ./
|
||||
RUN go build -o miniauth ./
|
||||
|
||||
FROM alpine
|
||||
COPY --from=build /usr/src/app/miniauth /miniauth
|
||||
CMD ["/miniauth"]
|
||||
Reference in a new issue