as-services/services/watchers/Dockerfile
devthejo d5febb45c8
Some checks failed
/ build (map[dockerfile:./services/tasks/Dockerfile name:tasks]) (push) Failing after 1m25s
/ deploy (push) Has been skipped
/ build (map[dockerfile:./services/files/Dockerfile name:files]) (push) Failing after 1m34s
/ build (map[dockerfile:./services/app/Dockerfile name:app]) (push) Successful in 2m9s
/ build (map[dockerfile:./services/api/Dockerfile name:api]) (push) Failing after 1m42s
/ build (map[dockerfile:./services/web/Dockerfile name:web]) (push) Failing after 1m18s
/ build (map[dockerfile:./services/watchers/Dockerfile name:watchers]) (push) Failing after 1m22s
/ build (map[dockerfile:./services/hasura/Dockerfile name:hasura]) (push) Successful in 2m3s
chore(init): available sources
2025-04-13 10:34:01 +02:00

29 lines
No EOL
830 B
Docker

# syntax = devthefuture/dockerfile-x
FROM ./dockerfile-x/node AS build
ENV NODE_ENV=production
# fetch
COPY --chown=1000:1000 .yarnrc.yml ./
COPY --chown=1000:1000 yarn.lock.prod ./yarn.lock
COPY --chown=1000:1000 .yarn .yarn
RUN yarn fetch workspaces focus @as/watchers
# copy
COPY --chown=1000:1000 libs libs
COPY --chown=1000:1000 services/watchers/package.json services/watchers/package.json
COPY --chown=1000:1000 services/watchers/src services/watchers/src
# build
RUN yarn workspaces foreach -A -t run postinstall
RUN yarn workspace @as/watchers build
# clean
RUN yarn workspaces focus --production @as/watchers && yarn cache clean --all
FROM ./dockerfile-x/node
ENV NODE_ENV=production
CMD ["node","/app/dist/index.js","start"]
COPY --from=build /app/services/watchers/dist/ /app/dist/
LABEL project="alertesecours"