Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run docker compose with --renew-anon-modules (-V) #64

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,9 @@ FROM node:11
WORKDIR /frontend
COPY package.json yarn.lock ./
RUN yarn install
RUN mkdir -p /frontend/.cache /frontend/.parcel-cache
VOLUME /frontend/node_modules
VOLUME /frontend/.cache
VOLUME /frontend/.parcel-cache

# make sure that stale caches aren't used
RUN rm -rf /frontend/node_modules/*
RUN rm -rf /frontend/.cache/*
RUN rm -rf /frontend/.parcel-cache/*

RUN yarn run parcel --version
CMD yarn start
CMD sh -c 'if [ -z "$(ls -A /frontend/.parcel-cache)" ]; then yarn start; else echo "parcel cache not empty, run docker-compose up with -V (--renew-anon-volumes)"; fi'