-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Icemap
committed
Jun 20, 2024
1 parent
cfead7c
commit eedcc69
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM python:3.11.9-slim | ||
|
||
RUN apt-get update | ||
|
||
WORKDIR /app | ||
|
||
COPY requirements.txt /app/requirements.txt | ||
RUN PYTHONDONTWRITEBYTECODE=1 pip install --no-cache-dir -r /app/requirements.txt | ||
|
||
COPY . /app/ | ||
|
||
ENV PYTHONPATH /app | ||
|
||
EXPOSE 4000 | ||
|
||
CMD ["python", "manage.py", "runserver", "--port", "4000"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.PHONY: build start | ||
|
||
build: | ||
docker build -t trans-forum:latest . | ||
|
||
start: | ||
docker run -itd \ | ||
-p 4000:4000 \ | ||
-v .env:/app/.env \ | ||
trans-forum:latest |