Skip to content

Commit fc242b0

Browse files
author
bcsik
committed
update project
1 parent e47da57 commit fc242b0

File tree

5 files changed

+12
-581
lines changed

5 files changed

+12
-581
lines changed

.circleci/config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
pkg-manager: poetry
1212
- run: poetry run isort . --check
1313
- run: poetry run black --check .
14-
- run: poetry run mypy -p src.bss_web_file_server
1514
workflows:
1615
app:
1716
jobs:

Dockerfile

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
1-
FROM python:3.12.2-alpine as builder
2-
WORKDIR /app
3-
ENV PYTHONDONTWRITEBYTECODE=1
4-
ENV PYTHONUNBUFFERED=1
5-
COPY requirements.txt ./
6-
RUN pip wheel --no-cache-dir --no-deps --wheel-dir ./wheels -r requirements.txt
7-
8-
FROM python:3.12.2-alpine
1+
FROM python:3.12.2 as poetry
2+
RUN pip install poetry==1.7.1
93

10-
COPY --from=builder /app/wheels /wheels
11-
COPY --from=builder /app/requirements.txt .
4+
FROM poetry
5+
WORKDIR /app
126

13-
RUN pip install --no-cache /wheels/*
7+
COPY pyproject.toml poetry.lock ./
8+
RUN poetry install --no-root --no-directory
149

15-
COPY ./src ./src
10+
COPY ./src/ ./src
11+
COPY ./README.md ./
12+
RUN poetry install --only=main
1613

17-
RUN mkdir -p /usr/share/bss/{m,member,v,video}
18-
ENV SERVER_BASE_PATH="/usr/share/bss"
14+
RUN mkdir -p /data/{m,member,v,video}
15+
ENV SERVER_BASE_PATH="/data"
1916

2017
CMD ["uvicorn", "src.bss_web_file_server.main:app", "--host", "0.0.0.0", "--port", "80"]

poetry.lock

Lines changed: 1 addition & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ types-Pillow = "^9.3.0.2"
2626
httpx = "^0.26.0"
2727
pytest = "^7.2.0"
2828
pytest-mock = "^3.10.0"
29-
mypy = "^0.991"
3029

3130
[tool.poetry.scripts]
3231
start = "uvicorn src.bss_web_file_server.main:app"

0 commit comments

Comments
 (0)