mirror of
https://github.com/lemeow125/Borrowing-TrackerBackend.git
synced 2024-11-17 06:19:26 +08:00
19 lines
394 B
Docker
19 lines
394 B
Docker
ARG DOCKER_PLATFORM=$TARGETPLATFORM
|
|
FROM --platform=$DOCKER_PLATFORM python:3.11.4-bookworm
|
|
|
|
ENV PYTHONBUFFERED 1
|
|
|
|
# Create directory
|
|
RUN mkdir /code
|
|
|
|
# Set the working directory to /code
|
|
WORKDIR /code
|
|
|
|
# Mirror the current directory to the working directory for hotreloading
|
|
ADD . /code/
|
|
|
|
# Install pipenv
|
|
RUN pip install -r requirements.txt
|
|
|
|
# Expose port 8000 for the web server
|
|
EXPOSE 8000
|