Skip to content
Snippets Groups Projects
Commit 039b7753 authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

update dockerfile

parent 9ae13cf9
No related branches found
No related tags found
1 merge request!1Test release
Pipeline #11249 failed
...@@ -8,7 +8,7 @@ RUN apt-get install nodejs && rm -rf /var/lib/apt/lists/* ...@@ -8,7 +8,7 @@ RUN apt-get install nodejs && rm -rf /var/lib/apt/lists/*
COPY . . COPY . .
RUN pip install -r requirements/base.txt -r requirements/prod.txt RUN pip install -r requirements/base.txt -r requirements/production.txt
RUN npm install RUN npm install
RUN npm run build RUN npm run build
...@@ -16,14 +16,14 @@ RUN npm run build ...@@ -16,14 +16,14 @@ RUN npm run build
RUN DATABASE_URL=postgres://x/x \ RUN DATABASE_URL=postgres://x/x \
SECRET_KEY=x \ SECRET_KEY=x \
ALLOWED_HOSTS=x \ ALLOWED_HOSTS=x \
python manage.py collectstatic --noinput --settings=rybicka.settings.prod python manage.py collectstatic --noinput --settings=rybicka.settings.production
RUN bash -c "adduser --disabled-login --quiet --gecos app app && \ RUN bash -c "adduser --disabled-login --quiet --gecos app app && \
chmod -R o+r /app/ && \ chmod -R o+r /app/ && \
chmod o+x /app/run.sh" chmod o+x /app/run.sh"
USER app USER app
ENV DJANGO_SETTINGS_MODULE "rybicka.settings.prod" ENV DJANGO_SETTINGS_MODULE "rybicka.settings.production"
EXPOSE 8000 EXPOSE 8000
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment