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)