mirror of https://github.com/logos-co/open-law.git
fix: docker build
This commit is contained in:
parent
a9066bbe18
commit
fbf79ea848
|
@ -15,8 +15,5 @@ README.md
|
|||
TODO.md
|
||||
**/.venv
|
||||
/tests/
|
||||
/src/
|
||||
**/*.sqlite3
|
||||
**/package.json
|
||||
**/tox.ini
|
||||
**/yarn.lock
|
||||
|
|
15
Dockerfile
15
Dockerfile
|
@ -1,3 +1,17 @@
|
|||
##########################################
|
||||
## build frontend
|
||||
##########################################
|
||||
FROM node:buster as front_build
|
||||
# FROM node as front_build
|
||||
RUN mkdir /front
|
||||
WORKDIR /front
|
||||
COPY . /front/
|
||||
RUN yarn
|
||||
RUN npx update-browserslist-db@latest -y
|
||||
RUN yarn css
|
||||
RUN yarn js
|
||||
|
||||
|
||||
FROM python:3.11-alpine
|
||||
|
||||
# install build utils and dependencies
|
||||
|
@ -36,3 +50,4 @@ RUN poetry install --no-dev --no-interaction --no-ansi
|
|||
RUN poetry add gunicorn
|
||||
|
||||
COPY --chown=app:app . .
|
||||
COPY --chown=app:app --from=front_build /front/app/static ./app/static
|
||||
|
|
|
@ -1566,9 +1566,9 @@ camelcase-css@^2.0.1:
|
|||
integrity sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==
|
||||
|
||||
caniuse-lite@^1.0.30001449, caniuse-lite@^1.0.30001464:
|
||||
version "1.0.30001480"
|
||||
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001480.tgz#9bbd35ee44c2480a1e3a3b9f4496f5066817164a"
|
||||
integrity sha512-q7cpoPPvZYgtyC4VaBSN0Bt+PJ4c4EYRf0DrduInOz2SkFpHD5p3LnvEpqBp7UnJn+8x1Ogl1s38saUxe+ihQQ==
|
||||
version "1.0.30001486"
|
||||
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001486.tgz"
|
||||
integrity sha512-uv7/gXuHi10Whlj0pp5q/tsK/32J2QSqVRKQhs2j8VsDCjgyruAh/eEXHF822VqO9yT6iZKw3nRwZRSPBE9OQg==
|
||||
|
||||
chalk@^2.0.0:
|
||||
version "2.4.2"
|
||||
|
|
Loading…
Reference in New Issue