Skip to content

Commit 2045ea4

Browse files
authored
use official node image with fixed version and remove useless entrypoint
1 parent afad8c9 commit 2045ea4

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

Dockerfile

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
1-
#FROM library/node:6
2-
FROM ubuntu:xenial
1+
FROM node:19.4.0-bullseye-slim
32

43
MAINTAINER "Daniel Garcia aka (cr0hn)" <[email protected]>
54

65
ENV STAGE "DOCKER"
76

8-
RUN apt-get update && apt-get -y upgrade && \
9-
apt-get install -y nodejs npm netcat
10-
11-
# Fix node links
12-
RUN ln -s /usr/bin/nodejs /usr/bin/node
7+
RUN apt-get update && apt-get install -y netcat
138

149
# Build app folders
1510
RUN mkdir /app
@@ -22,9 +17,6 @@ RUN npm install
2217
# Bundle code
2318
COPY . /app
2419

25-
RUN chmod +x /app/start.sh
26-
2720
EXPOSE 3000
2821

29-
CMD [ "/app/start.sh" ]
30-
#CMD [ "npm", "start" ]
22+
CMD [ "npm", "start" ]

0 commit comments

Comments
 (0)