-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce image size and better instructions
- Loading branch information
Showing
2 changed files
with
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
FROM tiangolo/uwsgi-nginx-flask:python3.7 | ||
|
||
COPY requirements.txt /tmp/ | ||
RUN pip install -r /tmp/requirements.txt | ||
|
||
RUN apt-get update && apt-get install -y openjdk-8-jre-headless | ||
# Needed to prevent Java from AWTError Assistive Technology not found | ||
RUN sed -i -e '/^assistive_technologies=/s/^/#/' /etc/java-*-openjdk/accessibility.properties | ||
|
||
COPY ./app /app | ||
FROM tiangolo/uwsgi-nginx-flask:python3.7-alpine3.8 | ||
|
||
COPY requirements.txt /tmp/ | ||
RUN pip install --upgrade pip | ||
RUN pip install -r /tmp/requirements.txt | ||
|
||
RUN apk --update add openjdk8-jre-base | ||
|
||
COPY ./app /app |
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