first PoC frontend #3
2 changed files with 2 additions and 17 deletions
|
|
@ -4,10 +4,4 @@ WORKDIR /app
|
||||||
COPY --chmod=755 modules/server/nyanimedb /app
|
COPY --chmod=755 modules/server/nyanimedb /app
|
||||||
COPY modules/server/templates /app/templates
|
COPY modules/server/templates /app/templates
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
ENTRYPOINT ["/app/nyanimedb"]
|
ENTRYPOINT ["/app/nyanimedb"]
|
||||||
|
|
||||||
|
|
||||||
# FROM debian:buster-slim
|
|
||||||
# COPY --from=builder /go/src/app/main /go/bin/main
|
|
||||||
# ENV PATH="/go/bin:${PATH}"
|
|
||||||
# CMD ["main"]
|
|
||||||
|
|
@ -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
|
FROM nginx:alpine
|
||||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
COPY modules/frontend/dist /usr/share/nginx/html
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue