pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/lfortin/node-cgi-core/commit/31aef29d1b38cf9a3ddcbfe121b6be647a2db4a2

css" /> updated Dockerfile · lfortin/node-cgi-core@31aef29 · GitHub
Skip to content

Commit 31aef29

Browse files
committed
updated Dockerfile
1 parent e383f03 commit 31aef29

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Dockerfile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
1-
FROM node:20-alpine
1+
FROM node:24-alpine
22

33
WORKDIR /usr/src/app
44

55
RUN apk add --no-cache perl python3 ruby bash
6-
RUN npm install --no-cache serve-static finalhandler cgi-core
6+
RUN npm install --no-save cgi-core
77

8-
COPY ./server/ ./server/
9-
10-
VOLUME ["/usr/src/app/htdocs"]
118
VOLUME ["/usr/src/app/cgi-bin"]
129

1310
EXPOSE 3001
1411

15-
CMD ["node", "server/docker.mjs"]
12+
CMD ["npx", "cgi-server", "--port", "3001", "--filePath", "/usr/src/app/cgi-bin", "-d", "-l"]
1613

1714
# HOWTO
1815
#
@@ -22,7 +19,7 @@ CMD ["node", "server/docker.mjs"]
2219
#
2320
# 2-then, run a container:
2421
#
25-
# docker run -e PORT=3001 -p 3001:3001 -v ./cgi-bin:/usr/src/app/cgi-bin -v ./htdocs:/usr/src/app/htdocs cgi-server
22+
# docker run -e PORT=3001 -p 3001:3001 -v ./cgi-bin:/usr/src/app/cgi-bin cgi-server
2623
#
2724
#
2825
# (You may need to adjust permissions for the directories and scripts in the cgi-bin folder to ensure they can be executed.)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy