-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (24 loc) · 994 Bytes
/
Dockerfile
File metadata and controls
35 lines (24 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
## BUILDING
## (from project root directory)
## $ docker build -t python-for-codeasync-python .
##
## RUNNING
## $ docker run python-for-codeasync-python
FROM gcr.io/bitnami-containers/minideb-extras:jessie-r14-buildpack
MAINTAINER Bitnami <containers@bitnami.com>
ENV STACKSMITH_STACK_ID="2oonjv7" \
STACKSMITH_STACK_NAME="Python for CodeAsync/python" \
STACKSMITH_STACK_PRIVATE="1"
# Install required system packages
RUN install_packages libc6 libssl1.0.0 libffi6 libncurses5 libtinfo5 zlib1g libreadline6 libsqlite3-0
RUN bitnami-pkg install python-3.6.1-0 --checksum 9d4c880736fe74c29d4515318ace3f4eceabb5b625c1ed3268995427cfa4edf7
ENV PATH=/opt/bitnami/python/bin:$PATH
## STACKSMITH-END: Modifications below this line will be unchanged when regenerating
# Django template
COPY . /app
WORKDIR /app
RUN pip install -r requirements.txt
VOLUME /bitnami/python /app
EXPOSE 8000
# To run Django: CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
CMD ["python3"]