This repository has been archived by the owner on Nov 29, 2024. It is now read-only.
-
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.
change back to docker and optimize image && serve static files from f…
…ly.io
- Loading branch information
1 parent
7ce7f7c
commit b73e47f
Showing
3 changed files
with
32 additions
and
17 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,8 +1,8 @@ | ||
# flyctl launch added from .gitignore | ||
**\.idea | ||
|
||
# flyctl launch added from .idea\.gitignore | ||
# Default ignored files | ||
.idea\shelf | ||
.idea\workspace.xml | ||
.* | ||
fly.toml | ||
Dockerfile | ||
README.md | ||
.gitkeep | ||
/data/fuel.json | ||
/data/facilities.json | ||
venv/ |
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,15 +1,12 @@ | ||
FROM python:3.12-slim-bullseye | ||
FROM python:alpine3.19 | ||
|
||
WORKDIR /app | ||
|
||
COPY requirements.txt requirements.txt | ||
RUN pip3 install -r requirements.txt | ||
|
||
COPY . . | ||
RUN pip install --no-cache-dir --no-input -r requirements.txt | ||
RUN rm /app/requirements.txt | ||
ENV TZ=Europe/Berlin | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
|
||
COPY . . | ||
|
||
EXPOSE 5000 | ||
|
||
CMD [ "python3", "app.py", "-w"] |
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