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