We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c22148 commit b55d66bCopy full SHA for b55d66b
1 file changed
docker/Dockerfile.serversideup
@@ -0,0 +1,21 @@
1
+FROM golang:1.23-alpine AS builder
2
+
3
+WORKDIR /build
4
+COPY . .
5
6
+RUN apk add --no-cache gcc musl-dev
7
+RUN go mod download
8
+RUN CGO_ENABLED=1 GOOS=linux go build -o /build/app .
9
10
+FROM alpine:latest
11
12
+WORKDIR /app
13
+RUN apk --no-cache add ca-certificates postgresql-client
14
15
+COPY --from=builder /build/app ./app
16
+COPY migrations/ ./migrations/
17
+RUN chmod +x ./app
18
+RUN mkdir -p assets
19
20
+EXPOSE 8080
21
+CMD ["./app"]
0 commit comments