Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
RECIRCLE
/
portal
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
11
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
40ba5cc8
authored
Jun 04, 2020
by
Chif Gergő
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create dockerfile
parent
4277bab9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
97 additions
and
0 deletions
+97
-0
.dockerignore
+78
-0
Dockerfile
+19
-0
No files found.
.dockerignore
0 → 100644
View file @
40ba5cc8
# 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
Dockerfile
0 → 100644
View file @
40ba5cc8
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment