-
Notifications
You must be signed in to change notification settings - Fork 85
Expand file tree
/
Copy pathDockerfile.dev
More file actions
25 lines (20 loc) · 804 Bytes
/
Copy pathDockerfile.dev
File metadata and controls
25 lines (20 loc) · 804 Bytes
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
# Dockerfile
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y \
python3 python3-venv python3-pip bash \
pkg-config \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /workdir
COPY . .
RUN mkdir -p /var/run/runtime
# Clean any existing build artifacts to ensure clean Docker build
RUN rm -rf build/ venvs/ 2>/dev/null || true
RUN chmod +x install.sh scripts/* start_openplc.sh
# --native, because install.sh now defaults to installing Docker and
# compiling nothing -- and there is no engine to install inside a build
# layer. Without this the dev image build fails at the installer's curl check.
RUN ./install.sh --native
# Clean up apt cache to reduce image size (Docker-specific optimization)
RUN rm -rf /var/lib/apt/lists/*
EXPOSE 8443
CMD ["bash", "./scripts/run-pytest.sh"]