moved docker file
This commit is contained in:
parent
11d9b7a0b4
commit
26aa4c476d
3 changed files with 13 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
Dockerfile
|
docker/
|
||||||
node_modules/
|
node_modules/
|
||||||
build/
|
build/
|
||||||
.svelte-kit/
|
.svelte-kit/
|
||||||
|
|
8
docker-compose.yml
Normal file
8
docker-compose.yml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
services:
|
||||||
|
maty-gift:
|
||||||
|
image: maty-gift
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: docker/Dockerfile
|
||||||
|
ports:
|
||||||
|
- "3000:3000"
|
|
@ -6,8 +6,12 @@ COPY package*.json /app/
|
||||||
RUN npm ci
|
RUN npm ci
|
||||||
|
|
||||||
FROM base AS build
|
FROM base AS build
|
||||||
|
|
||||||
|
ENV NODE_ENV=production
|
||||||
|
|
||||||
COPY --from=dependencies /app/node_modules /app/node_modules
|
COPY --from=dependencies /app/node_modules /app/node_modules
|
||||||
COPY . /app
|
COPY . /app
|
||||||
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM base AS release
|
FROM base AS release
|
Loading…
Reference in a new issue