We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6a8ef7f + ed1b9ce commit be56a9fCopy full SHA for be56a9f
1 file changed
Dockerfile
@@ -1,7 +1,8 @@
1
# syntax=docker/dockerfile:1
2
3
+### Build stage
4
# Use the latest Ubuntu base image
-FROM ubuntu:latest
5
+FROM ubuntu:latest AS builder
6
7
# Set the working directory inside the container
8
WORKDIR /workspaces/cups
@@ -21,5 +22,9 @@ COPY . /root/cups
21
22
WORKDIR /root/cups
23
RUN ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var && make clean && make && make install
24
25
+### Runtime stage
26
+FROM ubuntu:latest
27
+COPY --from=builder /root/cups /root/cups
28
+WORKDIR /root/cups
29
# Expose port 631 for CUPS web interface
30
EXPOSE 631
0 commit comments