From 1a01baffb3a5e495d8076f746889115d4f668f25 Mon Sep 17 00:00:00 2001 From: nihonium Date: Wed, 8 Oct 2025 18:50:05 +0300 Subject: [PATCH] fix: server dockerfile --- Dockerfiles/Dockerfile_server | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/Dockerfiles/Dockerfile_server b/Dockerfiles/Dockerfile_server index ca6ac2a..87014ce 100644 --- a/Dockerfiles/Dockerfile_server +++ b/Dockerfiles/Dockerfile_server @@ -1,21 +1,20 @@ -FROM golang:1.25 AS builder +FROM ubuntu:22.04 -ARG VERSION=dev +WORKDIR /app +COPY --chmod=755 nyanimedb /app +COPY templates /app/templates +EXPOSE 8080 +ENTRYPOINT ["/app/nyanimedb"] -WORKDIR /go/src/app -COPY main.go . -RUN go build -o main -ldflags=-X=main.version=${VERSION} main.go +# FROM golang:1.25 AS builder -FROM debian:buster-slim -COPY --from=builder /go/src/app/main /go/bin/main -ENV PATH="/go/bin:${PATH}" -CMD ["main"] +# ARG VERSION=dev +# WORKDIR /go/src/app +# COPY main.go . +# RUN go build -o main -ldflags=-X=main.version=${VERSION} main.go -# FROM ubuntu:22.04 - -# WORKDIR /app -# COPY --chmod=755 nyanimedb /app -# COPY templates /app/templates -# EXPOSE 8080 -# ENTRYPOINT ["/app/nyanimedb"] \ No newline at end of file +# FROM debian:buster-slim +# COPY --from=builder /go/src/app/main /go/bin/main +# ENV PATH="/go/bin:${PATH}" +# CMD ["main"] \ No newline at end of file