-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.gui
More file actions
40 lines (30 loc) · 940 Bytes
/
Dockerfile.gui
File metadata and controls
40 lines (30 loc) · 940 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Use the same builder as the original Dockerfile
FROM archlinux:latest AS builder
# Set up parallel downloads and other optimizations
COPY pacman.conf /etc/pacman.conf
# Update system and install necessary packages
RUN pacman -Syu --noconfirm && \
pacman -S --noconfirm --needed \
git \
archiso \
grub \
base-devel \
python-flask \
&& pacman -Scc --noconfirm
# Set the working directory
WORKDIR /build
# Copy only necessary files for package installation
COPY packages.x86_64 bootstrap_packages.x86_64 profiledef.sh ./
# Create a new final image
FROM builder AS final
# Set the working directory
WORKDIR /workdir
# Copy the rest of the files
COPY . .
# Use an entrypoint script for better flexibility
COPY ./scripts/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Expose the port for the web GUI
EXPOSE 8080
# Set the entrypoint to run the Flask application
ENTRYPOINT ["python", "app.py"]