From f680e16be5f625a84a1d08b16531ae0f044d4026 Mon Sep 17 00:00:00 2001 From: nihonium Date: Thu, 9 Oct 2025 15:16:19 +0300 Subject: [PATCH] feat: modified dockerfiles for cicd build --- Dockerfiles/Dockerfile_backend | 8 +------- Dockerfiles/Dockerfile_frontend | 11 +---------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/Dockerfiles/Dockerfile_backend b/Dockerfiles/Dockerfile_backend index 1e170fc..0161a77 100644 --- a/Dockerfiles/Dockerfile_backend +++ b/Dockerfiles/Dockerfile_backend @@ -4,10 +4,4 @@ WORKDIR /app COPY --chmod=755 modules/server/nyanimedb /app COPY modules/server/templates /app/templates EXPOSE 8080 -ENTRYPOINT ["/app/nyanimedb"] - - -# 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 +ENTRYPOINT ["/app/nyanimedb"] \ No newline at end of file diff --git a/Dockerfiles/Dockerfile_frontend b/Dockerfiles/Dockerfile_frontend index 9f0752e..a7ec893 100644 --- a/Dockerfiles/Dockerfile_frontend +++ b/Dockerfiles/Dockerfile_frontend @@ -1,13 +1,4 @@ -FROM node:20-alpine AS builder -ARG VITE_BACKEND_API_BASE_URL -ENV VITE_BACKEND_API_BASE_URL=$VITE_BACKEND_API_BASE_URL -WORKDIR /app -COPY modules/frontend/ ./ -RUN echo "VITE_BACKEND_API_BASE_URL=$VITE_BACKEND_API_BASE_URL" -RUN npm install -RUN npm run build - FROM nginx:alpine -COPY --from=builder /app/dist /usr/share/nginx/html +COPY modules/frontend/dist /usr/share/nginx/html EXPOSE 80 CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file