Use pipenv sync command in Dockerfile.

`sync` is recommended for deployments. It installs exactly what's in
the Pipfile.lock and does not try to update the lockfile.

https://docs.pipenv.org/en/latest/advanced/#using-pipenv-for-deployments
This commit is contained in:
dandds 2019-08-14 09:45:24 -04:00
parent b26d8d575c
commit 4baf397be2

View File

@ -36,7 +36,7 @@ COPY . .
# Install app dependencies
RUN ./script/write_dotenv && \
pip install pipenv uwsgi && \
PIPENV_VENV_IN_PROJECT=1 pipenv install && \
PIPENV_VENV_IN_PROJECT=1 pipenv sync && \
yarn install && \
cp -rf ./node_modules/uswds/src/fonts ./static/ && \
yarn build