Skip to content

Commit

Permalink
update deps and optimize dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
cupcakearmy committed Dec 8, 2022
1 parent 1779f1b commit 5c70f43
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 75 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!Pipfile*
!src
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM python:3.9-alpine
FROM python:3.10-alpine

WORKDIR /tmp
RUN pip install pipenv
COPY ./Pipfile* ./
RUN pipenv install --system --deploy
WORKDIR /action

COPY ./Pipfile* ./
RUN pip install pipenv && \
pipenv install --system --deploy && \
pipenv --clear

WORKDIR /action
COPY ./src .

ENTRYPOINT [ "python" ]
CMD [ "/action/main.py" ]
CMD [ "/action/main.py" ]
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ autopep8 = "*"
mypy = "*"

[requires]
python_version = "3.9"
python_version = "3.10"
140 changes: 74 additions & 66 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Dict
from os import environ
from os.path import join
from typing import Dict

import requests
from markdown import markdown
Expand Down

0 comments on commit 5c70f43

Please sign in to comment.