-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathDockerfile.dev
More file actions
34 lines (26 loc) · 1.13 KB
/
Dockerfile.dev
File metadata and controls
34 lines (26 loc) · 1.13 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
FROM docker.io/python:3.9-slim-trixie
RUN ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
RUN apt-get -yq update && \
apt-get -yq --no-install-recommends install gcc curl libsasl2-dev libldap2-dev libssl-dev gnupg2 git && \
apt-get -yq clean all \
curl -sL https://deb.nodesource.com/setup_20.x | bash - && \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor -o /usr/share/keyrings/yarn-archive-keyring.gpg && \
echo "deb [signed-by=/usr/share/keyrings/yarn-archive-keyring.gpg] https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
apt-get -yq update && \
apt-get -yq --no-install-recommends install nodejs yarn
RUN mkdir /opt/packet
WORKDIR /opt/packet
COPY requirements.txt /opt/packet/
RUN pip install -r requirements.txt
COPY package.json /opt/packet/
COPY yarn.lock /opt/packet/
RUN yarn install && \
yarn global add gulp
COPY . /opt/packet
RUN gulp production && \
rm -rf node_modules && \
apt-get -yq remove nodejs npm yarn && \
apt-get -yq autoremove && \
apt-get -yq clean all
EXPOSE 8000
CMD ["/bin/bash", "-c", "python3 wsgi.py"]