Skip to content

Commit

Permalink
chore: add egg-info to dockerignore 🙈 (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
meysam81 authored Oct 19, 2022
1 parent e736ab9 commit dd15f33
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 21 deletions.
72 changes: 52 additions & 20 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,28 +1,60 @@
**/__pycache__
*.pyc
*.pyo
*.pyd
.Python
env
pip-log.txt
pip-delete-this-directory.txt
.tox
appfiles
app.log
.cache
CHANGELOG*
CHANGELOG.md
cloudformation-templates
*.cover
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.log
deploy
.devcontainer
.devcontainer/*
docker-compose*.yml
Dockerfile*
.dockerignore
.env
env
envtest
.git
.git*
helm
htmlcov
.hypothesis
.idea
.ignoretests
*.ipynb
*.log
.log
main_example.py
makefile
Makefile
mock_server.py
model_data
.mypy_cache
nosetests.xml
_old
pip-delete-this-directory.txt
pip-log.txt
.pre-commit-config.yaml
*.pyc
.pyc
__pycache__
*.pyd
*.pyo
.pytest_cache
.hypothesis

.Python
requirements-dev.txt
requirements-tests.txt
requirements-*.txt
stack-manager
test_files
*tests
tests
.tox
Untitled.ipynb
venv
version.txt
.vscode
wheel_sdk
makefile
mock_server.py
sdk-docs
.idea
helm
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ ARG REQUIREMENTS=requirements.txt
ARG USER=licenseware
ARG UID=1000
ARG GID=1000
ARG HOMEDIR=/home/${USER}

ENV BUILDDIR=${BUILDDIR} \
WHEELDIR=${WHEELDIR} \
REQUIREMENTS=${REQUIREMENTS} \
USER=${USER} \
UID=${UID} \
GID=${GID} \
PATH=${HOMEDIR}/.local/bin:${PATH} \
DEBIAN_FRONTEND=noninteractive \
PYTHONUNBUFFERED=1

RUN pip install -U pip && \
Expand All @@ -42,7 +45,7 @@ RUN pip wheel -r ${BUILDDIR}/${REQUIREMENTS} -w ${WHEELDIR}
# final image
FROM base AS run

ARG HOMEDIR=/home/${USER}
ARG HOMEDIR
ARG SDKDIR=${HOMEDIR}/sdk
ARG SERVICEDIR=${HOMEDIR}/service
ARG FILE_UPLOAD_PATH=/tmp/lware
Expand Down

0 comments on commit dd15f33

Please sign in to comment.