Compare commits

...

2 Commits

Author SHA1 Message Date
Fabian Stamm
ab073fe7ec Copy .yarn folder into docker container
Some checks failed
continuous-integration/drone/push Build is failing
2023-04-26 00:06:49 +02:00
Fabian Stamm
f09b8c893d Move build step into Dockerfile and remove from drone 2023-04-26 00:06:01 +02:00
2 changed files with 9 additions and 6 deletions

View File

@ -3,12 +3,12 @@ type: docker
name: default
steps:
- name: Build with node
image: node:19
commands:
- yarn install
- yarn build
- name: Publish to docker
# - name: Build with node
# image: node:19
# commands:
# - yarn install
# - yarn build
- name: Build and publish to docker
image: plugins/docker
settings:
username:

View File

@ -4,8 +4,10 @@ RUN mkdir -p /app
WORKDIR /app
COPY ["package.json", "yarn.lock", ".yarnrc.yml", "/app/"]
COPY [".yarn", "/app/.yarn"]
COPY ["src", "/app/src"]
RUN yarn install
RUN yarn build
@ -19,6 +21,7 @@ WORKDIR /app
ENV NODE_ENV=production
COPY ["package.json", "yarn.lock", ".yarnrc.yml", "/usr/src/app/"]
COPY [".yarn", "/app/.yarn"]
RUN yarn install