0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-22 08:40:03 +01:00

Fix dev.Dockerfile (following #4007) (#4037)

This commit is contained in:
Paolo D'Amico 2021-04-19 14:10:43 -07:00 committed by GitHub
parent 7ea9eb692c
commit 081ec88318
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,9 +44,9 @@ COPY plugins/yarn.lock plugins/
COPY . .
# generate Django's static files
RUN DATABASE_URL='postgres:///' REDIS_URL='redis:///' python manage.py collectstatic --noinput
RUN DATABASE_URL='postgres:///' REDIS_URL='redis:///' mkdir frontend/dist && python manage.py collectstatic --noinput
# install frontend dependencies
RUN mkdir frontend/dist && yarn install && yarn install --cwd plugins && yarn cache clean
RUN yarn install && yarn install --cwd plugins && yarn cache clean
CMD ["./bin/docker-dev"]