-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
64 lines (40 loc) · 1.17 KB
/
Dockerfile
File metadata and controls
64 lines (40 loc) · 1.17 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
FROM python:3.8.0
WORKDIR /app
RUN apt-get update -y
RUN apt-get install -y bash
RUN apt-get install -y libzbar-dev python3-dev
RUN apt-get install -y gcc
#RUN apt-get install -y --update alpine-sdk
#RUN apt-get install -y --virtual build-dependencies build-base gcc wget git
RUN pip install --upgrade pip
# dont'know use START
RUN apt-get install -y libpq-dev
# dont'know use END
# to run postgresql
RUN pip install psycopg2-binary
RUN pip install virtualenv
#RUN apt-get install -y postgresql-dev gcc musl-dev
#EXPOSE 8000
ENV MY_USER="codexten" \
MY_GROUP="codexten" \
MY_UID="1000" \
MY_GID="1000"
#RUN usermod -u MY_UID MY_USER
#USER ${MY_USER}
RUN set -x \
&& groupadd -g ${MY_GID} -r ${MY_GROUP} \
&& useradd -u ${MY_UID} -m -s /bin/bash -g ${MY_GROUP} ${MY_USER}
RUN usermod -u 1000 ${MY_USER}
RUN chown -R codexten /home/${MY_USER}
#RUN chown -R ${MY_USER}:${MY_USER} /en /projects
USER ${MY_USER}
ENV USER ${MY_USER}
ENV PATH /home/codexten/.local/bin:${PATH}
#
#ENV USER www-data
#USER ${USER}
#RUN chown -R www-data:www-data /var/www/init.sh
#RUN chmod +x /var/www/init.sh
#RUN cd /app && virtualenv venv
#CMD tail -f /dev/null
ENTRYPOINT tail -f /dev/null