forked from ahenrij/etsmtl-log680-oxygencs
-
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.
Merge pull request #9 from FilGoodInc/compressed_oxygencs
compressed to the max
- Loading branch information
Showing
4 changed files
with
33 additions
and
36 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,29 +1,13 @@ | ||
# Ignore Python cache files | ||
.git | ||
__pycache__ | ||
*.pyc | ||
*.pyo | ||
|
||
# Ignore Git files | ||
.git | ||
.gitignore | ||
|
||
# Ignore Dockerfile and .dockerignore | ||
Dockerfile | ||
.dockerignore | ||
|
||
# Ignore local configuration files | ||
*.local | ||
*.pyd | ||
*.db | ||
*.sqlite | ||
*.log | ||
|
||
# Ignore unit test and coverage results | ||
*.coverage | ||
.coverage | ||
.coverage.* | ||
|
||
# Ignore pytest cache | ||
.pytest_cache | ||
|
||
# Ignore build artifacts | ||
build/ | ||
dist/ | ||
*.egg-info/ | ||
.env.local | ||
.DS_Store | ||
node_modules | ||
build | ||
dist |
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,32 @@ | ||
FROM python:3.8-slim | ||
FROM python:3.8-alpine AS build | ||
|
||
WORKDIR /app | ||
|
||
COPY . /app | ||
|
||
RUN pip install --upgrade pip \ | ||
&& pip install pipenv | ||
RUN apk add --no-cache --virtual .build-deps \ | ||
build-base linux-headers gcc musl-dev libffi-dev postgresql-dev libpq && \ | ||
pip install --upgrade pip && \ | ||
pip install pipenv | ||
|
||
COPY Pipfile Pipfile.lock ./ | ||
RUN PIPENV_VENV_IN_PROJECT=1 pipenv install --deploy --ignore-pipfile | ||
|
||
COPY .env /app/.env | ||
COPY . . | ||
|
||
FROM python:3.8-alpine | ||
|
||
WORKDIR /app | ||
|
||
RUN apk add --no-cache libpq && \ | ||
pip install --upgrade pip && \ | ||
pip install pipenv | ||
|
||
COPY --from=build /app /app | ||
|
||
ENV PIPENV_VENV_IN_PROJECT=1 | ||
ENV PATH="/app/.venv/bin:$PATH" | ||
|
||
COPY .env /app/.env | ||
|
||
EXPOSE 5000 | ||
|
||
CMD ["pipenv", "run", "python", "src/main.py"] |
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 |
---|---|---|
|
@@ -25,5 +25,3 @@ python_version = "3.8" | |
|
||
[scripts] | ||
start = "python src/main.py" | ||
test = "# To implement" | ||
lint = "# To implement" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.