-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (20 loc) · 812 Bytes
/
Dockerfile
File metadata and controls
28 lines (20 loc) · 812 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
FROM radiansoftware/sleeping-beauty:v4.0.0 AS sleepingd
# EOL April 2031
FROM ubuntu:26.04
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
RUN curl -sL https://deb.nodesource.com/setup_26.x | bash && rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y g++ make nodejs python3 tini && rm -rf /var/lib/apt/lists/*
WORKDIR /src
COPY package.json package-lock.json /src/
RUN npm ci
COPY index.html server.js /src/
COPY --from=sleepingd /sleepingd /usr/local/bin/sleepingd
ENTRYPOINT ["/usr/bin/tini", "--"]
ENV SLEEPING_BEAUTY_COMMAND="PORT=8080 node server.js"
ENV SLEEPING_BEAUTY_TIMEOUT_SECONDS=60
ENV SLEEPING_BEAUTY_COMMAND_PORT=8080
ENV SLEEPING_BEAUTY_LISTEN_PORT=8081
RUN useradd -p '!' -m -l pythoninabox
CMD ["sleepingd"]
USER pythoninabox
EXPOSE 8081