-
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.
change location of dockerfile and add requirements.txt
- Loading branch information
IshayuR
committed
Oct 31, 2024
1 parent
da7d25f
commit 7da037a
Showing
2 changed files
with
33 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,30 @@ | ||
# For more information, please refer to https://aka.ms/vscode-docker-python | ||
#just so yk this dockerfile is the template docker gave me lol | ||
# | ||
|
||
FROM ubuntu:latest | ||
FROM python:3.8-slim-buster | ||
#install pip & python3 | ||
RUN apt-get update && apt-get install -y python3 python3-pip | ||
# Keeps Python from generating .pyc files in the container | ||
ENV PYTHONDONTWRITEBYTECODE=1 | ||
|
||
# Turns off buffering for easier container logging | ||
ENV PYTHONUNBUFFERED=1 | ||
|
||
# Install pip requirements | ||
COPY requirements.txt . | ||
#just use python3 | ||
RUN python3 -m pip install -r requirements.txt | ||
|
||
COPY main.py /main.py | ||
ENV PORT=5000 | ||
EXPOSE 5000 | ||
|
||
# Creates a non-root user with an explicit UID and adds permission to access the /app folder | ||
# For more info, please refer to https://aka.ms/vscode-docker-python-configure-containers | ||
#RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /app | ||
#USER appuser | ||
|
||
# During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug | ||
CMD ["python3", "main.py"] |
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,3 @@ | ||
Flask==2.0.3 | ||
requests==2.26.0 | ||
pandas==1.3.4 |