add deploy files
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
# Build Stage
|
||||
FROM golang:1.21.4 AS builder
|
||||
ENV GO111MODULE=on \
|
||||
GOPROXY=https://goproxy.cn,direct
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o main main.go
|
||||
|
||||
# Run Stage
|
||||
FROM zc1185230223/alpine-ffmpeg:3.18
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/main .
|
||||
RUN touch app.env
|
||||
EXPOSE 9090
|
||||
CMD ["/app/main"]
|
||||
Reference in New Issue
Block a user