mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2025-09-18 05:29:37 +08:00
Update Dockerfile
This commit is contained in:
parent
2efab8b07a
commit
babab64113
1 changed files with 1 additions and 2 deletions
|
@ -27,8 +27,6 @@ ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN chmod +x /app/.docker/start.sh
|
|
||||||
|
|
||||||
# Copy the virtual environment from the builder stage
|
# Copy the virtual environment from the builder stage
|
||||||
COPY --from=builder /app /app
|
COPY --from=builder /app /app
|
||||||
|
|
||||||
|
@ -37,6 +35,7 @@ ENV PATH="/app/.venv/bin:$PATH"
|
||||||
|
|
||||||
# Copy project files
|
# Copy project files
|
||||||
COPY . /app/
|
COPY . /app/
|
||||||
|
RUN chmod +x /app/.docker/start.sh
|
||||||
|
|
||||||
# Expose Django's default port
|
# Expose Django's default port
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue