Files
tm_back/cmd/web/Dockerfile
T
n.nakhostin a8a08b33f6 Update Dockerfile to Include Flags Assets
- Added a new COPY command in the Dockerfile to include SVG flag assets from the go-builder stage, enhancing the application's asset management and visual representation of country flags.
2025-09-09 14:49:06 +03:30

24 lines
503 B
Docker

ARG GO_VERSION=1.23
ARG BASH_VERSION=5.0
FROM golang:${GO_VERSION} AS go-builder
WORKDIR /app
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o web-build ./cmd/web/main.go
FROM bash:${BASH_VERSION}
RUN apk --no-cache add busybox-suid curl rsync tzdata tcpdump tree ca-certificates s-nail \
&& ln -s /usr/bin/mail /usr/bin/s-nail
WORKDIR /app
COPY --from=go-builder /app/web-build .
COPY --from=go-builder /app/assets/flags ./assets/flags
EXPOSE 80
ENTRYPOINT /app/web-build