File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,12 @@ ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
5
5
ARG HOME_DIR=/app
6
6
7
7
WORKDIR $HOME_DIR
8
-
8
+ COPY ./src ./src
9
9
EXPOSE 8000
10
10
11
11
COPY requirements.txt requirements.txt
12
12
13
13
RUN apk update \
14
14
&& 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
Original file line number Diff line number Diff line change @@ -3,14 +3,14 @@ version: '3'
3
3
services :
4
4
app :
5
5
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
7
7
environment :
8
8
- REDIS_HOST=redis
9
9
- ELASTIC_HOST=es
10
10
ports :
11
11
- " 8000:8000"
12
- volumes :
13
- - " ./:/app"
12
+ # volumes:
13
+ # - "./:/app"
14
14
depends_on :
15
15
- es
16
16
- redis
You can’t perform that action at this time.
0 commit comments