Dockerfile

This commit is contained in:
iwnuplynottyan
2025-11-09 13:31:06 +02:00
parent c988c762a9
commit d3616e33ad
2 changed files with 49 additions and 0 deletions

22
Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
FROM golang:1.23-alpine AS builder
RUN apk add --no-cache git
WORKDIR /app
RUN git clone https://gitlab.com/foxixus/neomovies-api .
RUN go mod download
RUN go build -o neomovies main.go
FROM alpine:3.22
RUN apk add --no-cache ca-certificates
WORKDIR /app
COPY --from=builder /app/neomovies .
EXPOSE 3000
CMD ["./neomovies"]