Files
meet-front/Dockerfile
Smile Rex 50ac188fa0
All checks were successful
Create and publish a Docker image 🚀 / build-and-push-image (push) Successful in 1m19s
fix ports
2026-01-26 18:37:23 +03:00

23 lines
496 B
Docker

FROM oven/bun AS build
WORKDIR /app
COPY bun.lock package.json ./
RUN bun install
COPY . .
RUN bun run build
FROM golang:alpine AS server_builder
WORKDIR /app
COPY go.mod ./
RUN go mod download
COPY main.go ./
COPY --from=build /app/build ./build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o main
FROM alpine:latest
WORKDIR /app
RUN apk add --no-cache ca-certificates
COPY --from=server_builder /app/main ./main
COPY --from=server_builder /app/build ./build
EXPOSE 3000
CMD ["./main"]