mirror of
https://github.com/Dvorinka/excalidraw-full.git
synced 2026-06-04 22:32:55 +00:00
Pack as docker for AWS Fargate
Spawning this a AWS Fargate services requires a docker image.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
FROM golang:alpine as builder
|
||||
RUN apk update && apk add --no-cache git
|
||||
WORKDIR /app
|
||||
COPY go.mod ./
|
||||
RUN GOPROXY=direct go mod download
|
||||
COPY . .
|
||||
RUN GOPROXY=direct CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .
|
||||
|
||||
FROM alpine
|
||||
WORKDIR /root/
|
||||
COPY --from=builder /app/main .
|
||||
# COPY --from=builder /app/.env .
|
||||
EXPOSE 3002
|
||||
CMD ["./main"]
|
||||
Reference in New Issue
Block a user