Skip to content

Commit fc4dd6d

Browse files
author
Ariadne Engelbrecht
committed
Update dockerfile and readme to set is_local to false.
1 parent ffa2e90 commit fc4dd6d

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

week_11__final-project/spelling_bee/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ RUN --mount=type=cache,target=/root/.cache/pip \
3535

3636
# Copy the source code into the container.
3737
COPY . .
38+
RUN cp app.py app.py.bak \
39+
&& sed 's/is_local = True/is_local = False/g' app.py.bak > app.py
3840
RUN chmod +x ./run.sh \
3941
&& chown -R appuser:appuser /app
4042

week_11__final-project/spelling_bee/README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ The game is played as follows:
2626
- [Configuration](#configuration)
2727
- [Run the app](#run-the-app)
2828
- [Run the app via Docker](#run-the-app-via-docker)
29-
- [Configuration](#configuration-1)
3029
- [Installation](#installation-1)
3130
- [Run the app](#run-the-app-1)
3231

@@ -70,14 +69,6 @@ You can now access the app on `http://127.0.0.1:8000/`.
7069

7170
## Run the app via docker
7271

73-
### Configuration
74-
75-
In `app.py`, set the variable `is_local` to `False`.
76-
77-
```python
78-
is_local = False
79-
```
80-
8172
### Installation
8273

8374
Run the following command in your terminal to build the container:

0 commit comments

Comments
 (0)