Dockerfile changes
This commit is contained in:
parent
5953bfa8d5
commit
b3ce7a1054
|
|
@ -2,7 +2,10 @@
|
|||
FROM golang:1.24.0 AS builder
|
||||
WORKDIR /app
|
||||
COPY go-app/ .
|
||||
RUN go build -o server ./cmd
|
||||
COPY go-app/templates ./templates
|
||||
COPY go-app/static ./static
|
||||
COPY go-app/.env.example .env
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o server ./cmd/server/main.go
|
||||
|
||||
FROM debian:bullseye-slim
|
||||
WORKDIR /app
|
||||
|
|
|
|||
Loading…
Reference in a new issue