forked from Dokuly-PLM/dokuly
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
58 lines (45 loc) · 1.25 KB
/
Copy pathDockerfile
File metadata and controls
58 lines (45 loc) · 1.25 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
# syntax=docker/dockerfile:experimental
FROM python:3.11-slim-bookworm
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV DOCKER_BUILDKIT=1
# Create a new working dir in the image
WORKDIR /dokuly_image
# Copy over the python pdf package to sdp folder
# COPY ./NdPdfEditor/* ./NdPdfEditor
# Dependencies required on Mac M1.
RUN apt-get update \
&& apt-get install -y \
zlib1g-dev \
python3-lxml \
libffi-dev \
libxml2-dev \
libxslt1-dev \
libpq-dev \
python3-dev \
libssl-dev \
libjpeg-dev zlib1g-dev \
libpq-dev \
curl \
git \
gcc \
g++ \
nodejs \
npm \
poppler-utils
# Necessary installation for gerber SVG generation.
# Consider separating out gerber rendering to a micro-service.
RUN npm install -g @tracespace/cli
# RUN npm install -g @tracespace/cli@next
COPY ./requirements.txt /dokuly_image/requirements.txt
# Install requirements. Passing SSH-keys for github access to the container.
RUN pip3 install --upgrade pip && pip3 install -r requirements.txt
COPY . /dokuly_image
RUN rm -rf /root/.ssh/
# Install wget
RUN apt-get update \
&& apt-get install -y wget \
&& rm -rf /var/lib/apt/lists/*
EXPOSE 80 2222
# Use the entrypoint shell script as cmd
CMD /dokuly_image/startup.sh