diff --git a/.drone.yml b/.drone.yml index 26a9d9d..c9bc824 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index 5791544..99822f2 100644 --- a/Dockerfile +++ b/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"] \ No newline at end of file +FROM node +WORKDIR / +CMD ["node", "dist/lib/server/index.js"]