mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-10-11 13:19:49 +02:00
update Dockerfile
This commit is contained in:
@@ -2,15 +2,15 @@
|
|||||||
FROM node:20-alpine AS builder
|
FROM node:20-alpine AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY ./tranga-website /app
|
COPY ./website /app
|
||||||
RUN npm install
|
RUN npm install
|
||||||
RUN npm run build
|
RUN npm run generate
|
||||||
|
|
||||||
# Serve stage
|
# Serve stage
|
||||||
FROM nginx:alpine3.17-slim
|
FROM nginx:alpine3.17-slim
|
||||||
|
|
||||||
# Copy built files from Vite's dist folder
|
# Copy built files from Vite's dist folder
|
||||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
COPY --from=builder /app/.output/public /usr/share/nginx/html
|
||||||
#COPY --from=builder /app/tranga-website/media /usr/share/nginx/html/media
|
#COPY --from=builder /app/tranga-website/media /usr/share/nginx/html/media
|
||||||
COPY ./nginx /etc/nginx
|
COPY ./nginx /etc/nginx
|
||||||
|
|
||||||
|
@@ -13,4 +13,5 @@ export default defineNuxtConfig({
|
|||||||
api: { schema: 'http://127.0.0.1:6531/swagger/v2/swagger.json', baseURL: 'http://127.0.0.1:6531/' },
|
api: { schema: 'http://127.0.0.1:6531/swagger/v2/swagger.json', baseURL: 'http://127.0.0.1:6531/' },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
ssr: true,
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user