forked from hedyorg/hedy
-
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.
[REFACTORING] Improve Docker use (hedyorg#4064)
Some minor improvements for the use of Docker in development. Changes: - Adds build-essentials to the image, this is needed for some npm packages - Decrease the amount of RUN layers to reduce image size - Improve documentation a bit
- Loading branch information
Showing
2 changed files
with
14 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
FROM python:3.9-slim | ||
|
||
RUN apt update && apt install -y gcc | ||
|
||
COPY requirements.txt /tmp/requirements.txt | ||
|
||
RUN pip3 install --no-cache-dir -r /tmp/requirements.txt | ||
|
||
RUN apt install -y curl && curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && apt-get install -y nodejs | ||
RUN apt update && \ | ||
apt install build-essential -y && \ | ||
apt install -y curl && \ | ||
curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \ | ||
apt-get install -y nodejs && \ | ||
pip3 install --no-cache-dir -r /tmp/requirements.txt | ||
|
||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
EXPOSE 8080 | ||
|
||
ENTRYPOINT ["python", "app.py"] |