-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.dev
42 lines (34 loc) · 994 Bytes
/
Dockerfile.dev
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
FROM python:3.6
# set environment varibles
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# set work directory
WORKDIR /app
# Install python mysql client
RUN apt-get update \
&& apt-get -y install libmysqlclient-dev \
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash
RUN apt-get install -y nodejs
# install dependencies
COPY /app/requirements.txt /app/
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
COPY /app/package.json /app/
RUN npm install
#RUN pip install --upgrade pip
#RUN pip install pipenv
#COPY ./Pipfile /app/Pipfile
#RUN pipenv install --skip-lock
#RUN pip install pipenv
#RUN pipenv install
# copy project
# copy entrypoint.sh
EXPOSE 8000
# copy project
COPY /app/ /app/
# run entrypoint.sh
COPY app/entrypoint.dev.sh /app/entrypoint.dev.sh
RUN chmod +x /app/entrypoint.dev.sh
ENTRYPOINT ["/app/entrypoint.dev.sh"]
#CMD ["sh","/entrypoint.dev.sh"]