mirror of
https://github.com/socketio/socket.io.git
synced 2026-01-15 01:48:01 -05:00
Related: https://github.com/socketio/socket.io/discussions/3778 Reference: http://nginx.org/en/docs/http/ngx_http_upstream_module.html#hash
16 lines
251 B
Docker
16 lines
251 B
Docker
FROM node:14-alpine
|
|
|
|
# Create app directory
|
|
RUN mkdir -p /usr/src/app
|
|
WORKDIR /usr/src/app
|
|
|
|
# Install app dependencies
|
|
COPY package.json /usr/src/app/
|
|
RUN npm install --prod
|
|
|
|
# Bundle app source
|
|
COPY . /usr/src/app
|
|
|
|
EXPOSE 3000
|
|
CMD [ "npm", "start" ]
|