diff --git a/.drone.yml b/.drone.yml index a76335c..24161c5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,14 +2,14 @@ kind: pipeline name: default steps: - - name: build - image: node:alpine - pull: always - commands: - - node -v - - yarn -v - - yarn - - yarn run build + # - name: build + # image: node:alpine + # pull: always + # commands: + # - node -v + # - yarn -v + # - yarn + # - yarn run build - name: deploy image: cupcakearmy/drone-deploy @@ -27,8 +27,13 @@ steps: - ./docker-compose.prod.yml - ./yarn.lock - ./package.json + - ./tsconfig.json - ./next.config.js - - ./.next + - ./components + - ./pages + - ./public + - ./screens + - ./styles commands: - docker-compose -f docker-compose.prod.yml up -d --build when: diff --git a/Dockerfile b/Dockerfile index de87aef..5437a12 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,8 @@ COPY package.json . COPY yarn.lock . RUN yarn -COPY next.config.js . -COPY .env . +COPY . ./ + +RUN yarn run build CMD [ "yarn", "run", "start" ] \ No newline at end of file