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

update dockerfile

parent d5b66249
No related branches found
No related tags found
No related merge requests found
Pipeline #13605 passed
...@@ -17,14 +17,14 @@ RUN cd server; pip install -r requirements/base.txt ...@@ -17,14 +17,14 @@ RUN cd server; pip install -r requirements/base.txt
RUN cd frontend; npm install RUN cd frontend; npm install
# Build and copy files # Build and copy files
RUN cd frontend; \ RUN cd frontend && \
npm run build; \ rm -fr dist && \
rm -fr ../server/server/templates ../server/server/static; \ npm run build && \
mkdir ../server/server/templates ../server/server/static; \ rm -fr ../server/server/templates ../server/server/static && \
cp dist/index.html ../server/server/templates/; \ mkdir ../server/server/templates ../server/server/static && \
cp dist/static/* ../server/server/static/; \ cp dist/index.html ../server/server/templates/ && \
cp dist/favicon.ico ../server/server/static/; \ cp dist/static/* ../server/server/static/ && \
rm -fr dist cp dist/favicon.ico ../server/server/static/
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/ && \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment