Skip to content

Commit 6fdc082

Browse files
author
Denis
committed
chore: добавлено копирование кода сервиса в докер, убран кэш
1 parent 62701b4 commit 6fdc082

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
55
ARG HOME_DIR=/app
66

77
WORKDIR $HOME_DIR
8-
8+
COPY ./src ./src
99
EXPOSE 8000
1010

1111
COPY requirements.txt requirements.txt
1212

1313
RUN apk update \
1414
&& apk add build-base \
15-
&& pip install --no-cache-dir --upgrade pip \
16-
&& pip install --no-cache-dir -r requirements.txt
15+
&& pip install --upgrade pip \
16+
&& pip install -r requirements.txt

docker-compose.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ version: '3'
33
services:
44
app:
55
build: .
6-
command: uvicorn main:app --host 0.0.0.0 --port 8000
6+
command: uvicorn src.main:app --host 0.0.0.0 --port 8000
77
environment:
88
- REDIS_HOST=redis
99
- ELASTIC_HOST=es
1010
ports:
1111
- "8000:8000"
12-
volumes:
13-
- "./:/app"
12+
# volumes:
13+
# - "./:/app"
1414
depends_on:
1515
- es
1616
- redis

0 commit comments

Comments
 (0)