migrate to git.charlotte.sh
This commit is contained in:
commit
fbd588721e
412 changed files with 13750 additions and 0 deletions
15
sysadmin-ii-sys265/docker_proj1/Dockerfile
Normal file
15
sysadmin-ii-sys265/docker_proj1/Dockerfile
Normal file
|
@ -0,0 +1,15 @@
|
|||
# use this version of python
|
||||
FROM python:3.12-slim
|
||||
|
||||
# create a working directory and copy requirements file to it
|
||||
WORKDIR /app
|
||||
COPY app/requirements.txt /app/requirements.txt
|
||||
|
||||
# install dependencies
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# copy the rest of the files to working directory
|
||||
COPY app /app
|
||||
|
||||
# run the python script when the container starts
|
||||
CMD ["python", "app.py"]
|
Loading…
Add table
Add a link
Reference in a new issue