Spaces:
Running
Running
Commit
·
64cb96f
1
Parent(s):
5596d96
Update working directory in Dockerfile
Browse files- dockerfile +2 -2
dockerfile
CHANGED
@@ -7,7 +7,7 @@ ENV FLASK_APP=app.py \
|
|
7 |
FLASK_RUN_PORT=7860
|
8 |
|
9 |
# Set the working directory in the container
|
10 |
-
WORKDIR /
|
11 |
|
12 |
# Copy the requirements file into the container at /app
|
13 |
COPY requirements.txt .
|
@@ -19,7 +19,7 @@ RUN pip install -r requirements.txt
|
|
19 |
RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true
|
20 |
|
21 |
# Copy the rest of the application code into the container at /app
|
22 |
-
COPY .
|
23 |
|
24 |
# Expose the port that Flask is running on
|
25 |
EXPOSE 7860
|
|
|
7 |
FLASK_RUN_PORT=7860
|
8 |
|
9 |
# Set the working directory in the container
|
10 |
+
WORKDIR /code
|
11 |
|
12 |
# Copy the requirements file into the container at /app
|
13 |
COPY requirements.txt .
|
|
|
19 |
RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true
|
20 |
|
21 |
# Copy the rest of the application code into the container at /app
|
22 |
+
COPY . /code
|
23 |
|
24 |
# Expose the port that Flask is running on
|
25 |
EXPOSE 7860
|