test
This commit is contained in:
@@ -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
|
||||
|
||||
10
Dockerfile
10
Dockerfile
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user