Ubuntu 20.04 with nodejs and npm for AIS websocket
196
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
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
Content type
Image
Digest
sha256:c0fc77112…
Size
233.2 MB
Last updated
about 4 years ago
docker pull n0bility6/ais-node-websocket:1.0