pianello-web-app/frontend/Dockerfile

21 lines
344 B
Text
Raw Permalink Normal View History

FROM git.webdeploy.it/webdeploy/yarn AS build
2023-05-29 07:22:31 +02:00
2023-05-31 20:43:04 +02:00
WORKDIR /usr
COPY package.json ./
2023-12-12 18:21:19 +01:00
COPY package-lock.json ./
RUN npm ci
2023-05-31 20:43:04 +02:00
COPY . ./
2023-12-27 12:13:56 +01:00
# RUN npm run check
2023-12-12 18:59:49 +01:00
RUN npm run build
2023-05-31 20:43:04 +02:00
FROM git.webdeploy.it/webdeploy/yarn
2023-05-29 07:22:31 +02:00
2023-07-10 17:44:06 +02:00
WORKDIR /app
COPY package.json ./
2023-12-12 18:21:19 +01:00
COPY package-lock.json ./
RUN npm ci
2023-09-11 10:02:17 +02:00
COPY --from=build /usr/build /app
2023-05-29 07:22:31 +02:00
2023-07-10 17:44:06 +02:00
EXPOSE 8000
2023-08-23 14:45:25 +02:00
CMD ["node", "/app"]