docker: fixed missing app-dist from the image build

This commit is contained in:
Eugene Pankov 2022-11-07 22:33:51 +01:00
parent c70ed34482
commit 235ba2497c
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4
2 changed files with 4 additions and 4 deletions

View File

@ -39,10 +39,11 @@ COPY --from=frontend /app/build /frontend
ARG BUNDLED_TABBY=1.0.187-nightly.1
RUN FRONTEND_BUILD_DIR=/frontend /venv/*/bin/python ./manage.py collectstatic --noinput
RUN FRONTEND_BUILD_DIR=/frontend /venv/*/bin/python ./manage.py add_version ${BUNDLED_TABBY}
RUN APP_DIST_STORAGE=file:///app-dist /venv/*/bin/python ./manage.py add_version ${BUNDLED_TABBY}
FROM python:3.7-alpine AS backend
ENV APP_DIST_STORAGE file:///app-dist
ENV DOCKERIZE_VERSION v0.6.1
ENV DOCKERIZE_ARCH amd64
ARG TARGETPLATFORM
@ -57,6 +58,7 @@ RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSI
RUN apk add mariadb-connector-c
COPY --from=build-backend /app /app
COPY --from=build-backend /app-dist /app-dist
COPY --from=build-backend /venv /venv
COPY backend/start.sh backend/manage.sh /

View File

@ -6,14 +6,12 @@ services:
- db
ports:
- 9090:80
volumes:
- ./app-dist:/app-dist
environment:
- DATABASE_URL=mysql://root:123@db/tabby
- PORT=80
- DEBUG=False
- APP_DIST_STORAGE=file:///app-dist
- DOCKERIZE_ARGS="-wait tcp://db:3306 -timeout 60s"
# - APP_DIST_STORAGE="file:///app-dist"
db:
image: mariadb:10.7.1