forked from pypi/warehouse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Refactoring multiple parts of the dockerfile (pypi#10004)" (p…
…ypi#10020) This reverts commit 6581b02.
- Loading branch information
1 parent
8bd48df
commit e31752d
Showing
16 changed files
with
132 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
.git | ||
.git/* | ||
node_modules | ||
dev | ||
dev/* | ||
**/*.pyc | ||
htmlcov | ||
warehouse/static/dist | ||
.mypy_cache | ||
.state | ||
tests | ||
.github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM node:14.4.0 as static | ||
|
||
WORKDIR /opt/warehouse/src/ | ||
|
||
# The list of C packages we need are almost never going to change, so installing | ||
# them first, right off the bat lets us cache that and having node.js level | ||
# dependency changes not trigger a reinstall. | ||
RUN set -x \ | ||
&& apt-get update \ | ||
&& apt-get install --no-install-recommends -y \ | ||
libjpeg-dev nasm | ||
|
||
# However, we do want to trigger a reinstall of our node.js dependencies anytime | ||
# our package.json changes, so we'll ensure that we're copying that into our | ||
# static container prior to actually installing the npm dependencies. | ||
COPY package.json package-lock.json .babelrc /opt/warehouse/src/ | ||
|
||
# Installing npm dependencies is done as a distinct step and *prior* to copying | ||
# over our static files so that, you guessed it, we don't invalidate the cache | ||
# of installed dependencies just because files have been modified. | ||
RUN set -x \ | ||
&& npm install -g npm@latest \ | ||
&& npm install -g gulp-cli \ | ||
&& npm ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
-r pip.txt | ||
gunicorn==20.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
-r pip.txt | ||
Sphinx | ||
sphinx_rtd_theme | ||
sphinxcontrib-httpdomain |
Oops, something went wrong.