moved docker file

This commit is contained in:
Jakub Kropáček 2024-12-22 11:43:58 +01:00
parent 11d9b7a0b4
commit 26aa4c476d
3 changed files with 13 additions and 1 deletions

View file

@ -1,4 +1,4 @@
Dockerfile
docker/
node_modules/
build/
.svelte-kit/

8
docker-compose.yml Normal file
View file

@ -0,0 +1,8 @@
services:
maty-gift:
image: maty-gift
build:
context: .
dockerfile: docker/Dockerfile
ports:
- "3000:3000"

View file

@ -6,8 +6,12 @@ COPY package*.json /app/
RUN npm ci
FROM base AS build
ENV NODE_ENV=production
COPY --from=dependencies /app/node_modules /app/node_modules
COPY . /app
RUN npm run build
FROM base AS release