Upload Dockerfile
Browse files- Dockerfile +17 -0
Dockerfile
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM node
|
2 |
+
# Create app directory
|
3 |
+
WORKDIR /usr/src/app
|
4 |
+
# Install app dependencies
|
5 |
+
# A wildcard is used to ensure both
|
6 |
+
# where available (npm@5+)
|
7 |
+
RUN npm install git
|
8 |
+
RUN git clone https://github.com/ikechan8370/sydney-ws-proxy.git
|
9 |
+
WORKDIR /usr/src/app/sydney-ws-proxy/
|
10 |
+
RUN npm install
|
11 |
+
# If you are building your code for production
|
12 |
+
# Bundle app source
|
13 |
+
EXPOSE 8080
|
14 |
+
EXPOSE 443
|
15 |
+
EXPOSE 80
|
16 |
+
RUN sed -i '137c\const port = 7860;' app.js
|
17 |
+
CMD [ "node", "app.js" ]
|