fertiges design!
This commit is contained in:
parent
74f38656f7
commit
934e249f33
|
|
@ -113,10 +113,10 @@ temp/
|
||||||
# Vercel
|
# Vercel
|
||||||
.vercel
|
.vercel
|
||||||
|
|
||||||
# Docker
|
# Docker (keeping these files for the project)
|
||||||
.dockerignore
|
# .dockerignore
|
||||||
Dockerfile
|
# Dockerfile
|
||||||
docker-compose*.yml
|
# docker-compose*.yml
|
||||||
|
|
||||||
# Backup files
|
# Backup files
|
||||||
*.bak
|
*.bak
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
|
||||||
|
FROM node:20-alpine AS build
|
||||||
|
WORKDIR /app
|
||||||
|
COPY package.json ./
|
||||||
|
RUN npm install
|
||||||
|
COPY . .
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
|
FROM nginx:alpine
|
||||||
|
COPY --from=build /app/dist /usr/share/nginx/html
|
||||||
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
|
EXPOSE 80
|
||||||
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
|
||||||
|
version: "3.9"
|
||||||
|
services:
|
||||||
|
dev:
|
||||||
|
image: node:20-alpine
|
||||||
|
working_dir: /app
|
||||||
|
volumes:
|
||||||
|
- .:/app
|
||||||
|
- /app/node_modules
|
||||||
|
command: sh -c "npm install && npm run dev -- --host"
|
||||||
|
ports:
|
||||||
|
- "5173:5173"
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
|
||||||
|
version: "3.9"
|
||||||
|
services:
|
||||||
|
web:
|
||||||
|
build: .
|
||||||
|
ports:
|
||||||
|
- "8080:80"
|
||||||
|
restart: unless-stopped
|
||||||
Loading…
Reference in New Issue