Commit 40ba5cc8 by Chif Gergő

Create dockerfile

parent 4277bab9
# database file
db.sqlite
environment.sh.example
# IDEs
.vscode/
.idea/
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
example.py
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
db.sqlite3
# pyenv
.python-version
# Cloud configure
clouds.yaml
# Git
.gitignore
.gitmodules
.git*
\ No newline at end of file
FROM python:3.6
WORKDIR /usr/cloud/portal
SHELL ["/bin/bash", "-c"]
# Install pipenv
RUN pip install pipenv
# Open 8000 port
EXPOSE 8000/tcp
# Copy files necessary for install dependencies
COPY Pipfile* docker.env ./
# This env variable needed to pipenv find .env file
ENV PIPENV_DOTENV_LOCATION=/usr/cloud/portal/docker.env
# Install dependencies
RUN pipenv install -d
# Copy sources
COPY ./recircle ./recircle
# Migrate and start server
CMD pipenv run python recircle/manage.py migrate \
&& pipenv run python recircle/manage.py runserver 0.0.0.0:8000
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment