initial commit
This commit is contained in:
14
backend/Dockerfile
Normal file
14
backend/Dockerfile
Normal file
@ -0,0 +1,14 @@
|
||||
# Build stage
|
||||
FROM golang:1.22 AS builder
|
||||
WORKDIR /app
|
||||
COPY go.mod ./
|
||||
COPY main.go ./
|
||||
RUN go mod tidy
|
||||
RUN go build -o backend main.go
|
||||
|
||||
# Run stage
|
||||
FROM debian:bookworm-slim
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/backend .
|
||||
EXPOSE 8080
|
||||
CMD ["./backend"]
|
||||
Reference in New Issue
Block a user