diff --git a/Dockerfile b/Dockerfile index 476e68a..6a83c93 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,5 @@ FROM golang:1.25.5-alpine AS builder - -RUN apk add --no-cache build-base +RUN apk add --no-cache build-base ca-certificates WORKDIR /app COPY go.mod go.sum ./ RUN go mod download @@ -8,13 +7,11 @@ COPY . . RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -o shagram ./cmd/server FROM alpine:latest -RUN apk --no-cache add ca-certificates sqlite-libs - +RUN apk add --no-cache ca-certificates sqlite-libs sqlite WORKDIR /app COPY --from=builder /app/shagram . COPY static ./static COPY migrations ./migrations RUN mkdir -p /app/data - EXPOSE 8080 -CMD ["./shagram"] \ No newline at end of file +CMD ["./shagram"]