Initial commit
This commit is contained in:
28
Dockerfile
Normal file
28
Dockerfile
Normal file
@@ -0,0 +1,28 @@
|
||||
FROM golang:1.21-rc-alpine as build
|
||||
LABEL authors="andrusyakka@dopcore.com"
|
||||
|
||||
RUN apk update
|
||||
RUN apk upgrade
|
||||
RUN apk add --update gcc g++
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ENV CGO_ENABLED 1
|
||||
|
||||
COPY go.mod ./
|
||||
|
||||
RUN go mod download
|
||||
|
||||
COPY . ./
|
||||
|
||||
RUN go build -o ./app
|
||||
|
||||
FROM alpine:edge
|
||||
|
||||
WORKDIR /
|
||||
|
||||
COPY --from=build /app /app
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["/app/app"]
|
||||
Reference in New Issue
Block a user