diff options
| author | Bobby <[email protected]> | 2025-10-20 05:34:25 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2025-10-20 05:34:25 +0530 |
| commit | 2d53dd22a933900ddf4a60b79b20ac362c1c1f30 (patch) | |
| tree | be6545fbd8054c3d56bd2aa0f8e8a1c35cc2990d /Dockerfile | |
| parent | a71fbeff96412dcff2adcebc023d7a07552f2f7d (diff) | |
| download | complexity-analyzer-main.tar.xz complexity-analyzer-main.zip | |
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -12,16 +12,14 @@ RUN go mod download COPY . .
RUN go build -o complexity-analyzer
-FROM debian:bookworm-slim
+FROM golang:1.24
WORKDIR /complexity-analyzer
-ENV DEBIAN_FRONTEND=noninteractive
-
-RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends ca-certificates tzdata && rm -rf /var/lib/apt/lists/*
-
COPY --from=builder /complexity-analyzer/complexity-analyzer .
COPY --from=builder /complexity-analyzer/templates ./templates
COPY --from=builder /complexity-analyzer/static ./static
+EXPOSE 3000
+
CMD ["./complexity-analyzer"]
\ No newline at end of file |
