-
Notifications
You must be signed in to change notification settings - Fork 695
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π³ Add dockerfile for development and instructions to use it (#6041)
* π¦ Update dependencies and adjust to new APIs * π¨ Only execute git commands when needed * πΈ Do not throw errors for users without 404 page * π³ Add dockerfile for development and instructions to use it * π¨ Fix linter warnings. * π¨ Fix formatting errors * π‘ Fix spelling mistake Co-authored-by: Sebastian Benz <sebastian.benz@gmail.com> * π Move commands into well-named gulp tasks Co-authored-by: Sebastian Benz <sebastian.benz@gmail.com>
- Loading branch information
1 parent
8c43dac
commit fbd3d11
Showing
12 changed files
with
14,097 additions
and
24,324 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
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,27 @@ | ||
FROM python:3.7.9-slim-buster | ||
ENV PYTHONUNBUFFERED 1 | ||
|
||
RUN \ | ||
apt-get update --yes --quiet && apt-get install --yes --quiet --no-install-recommends \ | ||
build-essential \ | ||
git \ | ||
libyaml-dev \ | ||
curl && \ | ||
pip install -U pip && pip install grow && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN \ | ||
curl -sL https://deb.nodesource.com/setup_14.x | bash - && \ | ||
apt-get install -y nodejs && \ | ||
npm i -g npm && \ | ||
npm install -g gulp | ||
|
||
RUN mkdir /amp-dev | ||
COPY . /amp-dev/ | ||
WORKDIR /amp-dev/ | ||
|
||
RUN npm install | ||
|
||
EXPOSE 8080 8080 | ||
WORKDIR /amp-dev/platform | ||
CMD ["gulp", "develop"] |
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 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
Oops, something went wrong.