-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (25 loc) · 996 Bytes
/
Dockerfile
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
# Use Ubuntu as the base image
FROM ubuntu:24.04
# Update package list and install essential tools (curl, ca-certificates)
RUN apt-get update && \
# Install packages without prompts and recommendations
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
curl \
ca-certificates && \
# Clean up apt cache to reduce image size
apt-get clean && \
# Delete downloaded package lists
rm -rf /var/lib/apt/lists/*
# Install Nix Package Manager using the Determinate Systems Nix installer
RUN curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install linux \
--extra-conf "sandbox = false" \
--init none \
--no-confirm
# Set PATH environment variable to include Nix binaries
ENV PATH="${PATH}:/nix/var/nix/profiles/default/bin"
# Launch systemd
CMD [ "/bin/systemd" ]
# Install Devbox using Nix
RUN nix profile install nixpkgs#devbox
# Expose port 8080 to handle requests to web server
EXPOSE 8080