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 - name: Build
image: node image: node
commands: commands:
- cd /app
- cp /drone/grow/package.json ./ - cp /drone/grow/package.json ./
- cp /drone/grow/yarn.lock ./ - cp /drone/grow/yarn.lock ./
- yarn install --frozen-lockfile - yarn install --frozen-lockfile
- cp -r /drone/grow/* . - cp -r /drone/grow/* .
- yarn build - yarn build
- name: Deploy Container - name: Deploy Container
image: compose image: docker/compose
commands: commands:
- cp /drone/grow/* . - cp /drone/grow/* .
- build - build .
- up -d - up -d
volumes: volumes:
- name: env - name: env

View File

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