forked from ztgrace/changeme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (30 loc) · 797 Bytes
/
Dockerfile
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
FROM alpine:latest
MAINTAINER Zach Grace (@ztgrace)
RUN mkdir /changeme
COPY . /changeme/
RUN apk update \
&& apk add --no-cache --virtual .changeme-deps \
bash \
libxml2 \
py-lxml \
py-pip \
&& apk add --no-cache --virtual .build-deps \
ca-certificates \
gcc \
g++ \
libffi-dev \
libtool \
libxml2-dev \
make \
musl-dev \
postgresql-dev \
python-dev \
unixodbc-dev \
&& pip install -r /changeme/requirements.txt \
&& apk del .build-deps \
&& find /usr/ -type f -a -name '*.pyc' -o -name '*.pyo' -exec rm '{}' \; \
&& ln -s /changeme/changeme.py /usr/local/bin/
ENV HOME /changeme
ENV PS1 "\033[00;34mchangeme>\033[0m "
WORKDIR /changeme
CMD ./changeme.py