Sign inSign up

n0bility6/ais-node-websocket

By n0bility6

Updated about 4 years ago

Ubuntu 20.04 with nodejs and npm for AIS websocket

Image
0

196

n0bility6/ais-node-websocket repository overview

Dockerfile
FROM ubuntu:20.04

MAINTAINER [email protected]
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y && apt-get install -y nodejs npm

WORKDIR app

COPY app /app
RUN mkdir /app/script
RUN mv /app/server.js /app/script

RUN npm install socket.io
RUN npm install express

EXPOSE 80
CMD node /app/script/server.js

Sample Deployment
docker-compose.yaml
version: "3.7"

services: 
  websocket: 
    image: n0bility6/ais-node-websocket:1.0
    volumes:
      - /mnt/script:/app/script           #Location of server.js script
    ports:
      - 80:80
    networks:
      - public  

networks:
  public:
    external: true

Tag summary

Content type

Image

Digest

sha256:c0fc77112

Size

233.2 MB

Last updated

about 4 years ago

docker pull n0bility6/ais-node-websocket:1.0