mirror of
https://github.com/Dvorinka/excalidraw-full.git
synced 2026-06-03 22:02:57 +00:00
2347954061
Spawning this a AWS Fargate services requires a docker image.
15 lines
349 B
Docker
15 lines
349 B
Docker
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"]
|