Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: NxPKG <[email protected]>
  • Loading branch information
NxPKG authored Jan 1, 2024
1 parent ce77f79 commit 78a3dc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ RUN python -m pip install --upgrade pip setuptools
RUN python -m pip install psycopg2-binary

# Install other dependencies from requirements.txt
COPY requirements.txt .
COPY . .
RUN python -m pip install -r requirements.txt

# Create a non-root user (optional)
RUN useradd -m myuser
USER myuser

EXPOSE 8000
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]

0 comments on commit 78a3dc2

Please sign in to comment.