Skip to content

Commit

Permalink
fix: switch to requirements due to nested shell
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonStuff committed Apr 8, 2024
1 parent acd512c commit 560ec82
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.github/*
.charts/*
deploy/*
13 changes: 6 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,17 @@ FROM python:3.10
# Set the working directory in the container
WORKDIR /usr/src/app

# Install pipenv
RUN pip install --upgrade pip && \
pip install pipenv
# Upgrade pip
RUN pip install --upgrade pip

# Copy Pipfile to the working directory
COPY Pipfile /usr/src/app/
COPY requirements.txt /usr/src/app/

# Install any needed packages specified in Pipfile
RUN pipenv install --deploy --ignore-pipfile
RUN pip install --no-cache-dir -r requirements.txt

# Copy the current directory contents into the container at /usr/src/app
COPY . /usr/src/app

# Run run.sh when the container launches
CMD ["pipenv", "run", "python", "app.py"]
# Run app.py when the container launches
CMD ["python", "app.py"]
18 changes: 18 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
-i https://pypi.org/simple
cachetools==5.3.3; python_version >= '3.7'
certifi==2024.2.2; python_version >= '3.6'
charset-normalizer==3.3.2; python_full_version >= '3.7.0'
google-auth==2.29.0; python_version >= '3.7'
idna==3.6; python_version >= '3.5'
kubernetes==29.0.0; python_version >= '3.6'
oauthlib==3.2.2; python_version >= '3.6'
pyasn1==0.6.0; python_version >= '3.8'
pyasn1-modules==0.4.0; python_version >= '3.8'
python-dateutil==2.9.0.post0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2'
pyyaml==6.0.1; python_version >= '3.6'
requests==2.31.0; python_version >= '3.7'
requests-oauthlib==2.0.0; python_version >= '3.4'
rsa==4.9; python_version >= '3.6' and python_version < '4'
six==1.16.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2'
urllib3==2.2.1; python_version >= '3.8'
websocket-client==1.7.0; python_version >= '3.8'

0 comments on commit 560ec82

Please sign in to comment.