Spaces:
Build error
Build error
Mediocreatmybest
commited on
Commit
•
9359cce
1
Parent(s):
ad82248
Update Dockerfile
Browse files- Dockerfile +7 -1
Dockerfile
CHANGED
@@ -50,8 +50,14 @@ EXPOSE 5001
|
|
50 |
COPY start.sh .
|
51 |
# switch back to root to execute start commands
|
52 |
USER root
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
RUN chmod +x start.sh
|
54 |
-
#RUN yarn build
|
55 |
CMD /bin/bash start.sh
|
56 |
#HEALTHCHECK CMD wget -q -O /dev/null http://localhost:5001 || exit 1
|
57 |
#CMD ["yarn", "start:production"]
|
|
|
50 |
COPY start.sh .
|
51 |
# switch back to root to execute start commands
|
52 |
USER root
|
53 |
+
|
54 |
+
|
55 |
+
# Let Node access port 80
|
56 |
+
RUN apt update && \
|
57 |
+
apt install libcap2-bin && \
|
58 |
+
setcap cap_net_bind_service=+ep `readlink -f \`which node\``
|
59 |
+
|
60 |
RUN chmod +x start.sh
|
|
|
61 |
CMD /bin/bash start.sh
|
62 |
#HEALTHCHECK CMD wget -q -O /dev/null http://localhost:5001 || exit 1
|
63 |
#CMD ["yarn", "start:production"]
|