mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-08-09 05:18:47 +02:00
feat(docker:dev): npm dependencies are installed when container starts
This commit is contained in:
@@ -3,9 +3,9 @@ FROM node:lts-alpine
|
||||
WORKDIR /usr/src/frontend
|
||||
|
||||
COPY ./frontend/package.json ./frontend/package-lock.json ./
|
||||
|
||||
RUN npm ci --verbose && npm cache clean --force
|
||||
COPY ./docker/dev/vite/entrypoint.sh /usr/local/bin/vite-entrypoint
|
||||
RUN chmod +x /usr/local/bin/vite-entrypoint
|
||||
|
||||
ENV PATH ./node_modules/.bin/:$PATH
|
||||
|
||||
CMD ["npm", "run", "dev"]
|
||||
ENTRYPOINT ["vite-entrypoint"]
|
||||
|
||||
Reference in New Issue
Block a user