This commit is contained in:
2023-05-03 16:26:26 -04:00
parent f29b50120f
commit 06c9c1d896
2 changed files with 5 additions and 10 deletions

View File

@@ -102,17 +102,16 @@ steps:
- name: Build
image: node
commands:
- cd /app
- cp /drone/grow/package.json ./
- cp /drone/grow/yarn.lock ./
- yarn install --frozen-lockfile
- cp -r /drone/grow/* .
- yarn build
- name: Deploy Container
image: compose
image: docker/compose
commands:
- cp /drone/grow/* .
- build
- build .
- up -d
volumes:
- name: env

View File

@@ -1,7 +1,3 @@
FROM node:latest
WORKDIR /app
COPY package.json .
RUN yarn install
COPY . .
RUN yarn build
CMD ["node", "dist/lib/server/index.js"]
FROM node
WORKDIR /
CMD ["node", "dist/lib/server/index.js"]