Skip to content

Commit 547be8a

Browse files
committed
add explaination of .env file
1 parent 528991d commit 547be8a

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,5 @@ dmypy.json
139139
.pyre/
140140

141141
# End of https://www.gitignore.io/api/macos,python
142+
143+
.env

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ RUN mkdir -p /usr/local/var
1414
RUN chown jumpstart:jumpstart /usr/local/var
1515
USER jumpstart
1616

17-
# CMD ["gunicorn", "jumpstart:app"]
1817
CMD ["sh", "-c", "gunicorn jumpstart:app --bind=0.0.0.0:8080 --access-logfile - --error-log - --capture-output --timeout=600"]

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,10 @@ docker run \
3535
-p 8080:8080 \
3636
jumpstart
3737
```
38+
3. You can also use a `.env` file:
39+
```
40+
docker run \
41+
--env-file='.env'
42+
-p 8080:8080
43+
jumpstart
44+
```

0 commit comments

Comments
 (0)