793e02efc4
The result app was years out of date with node and npm packages, and required multiple changes to use the current supported socket.io and postgres db libs. Minimal changes to server.js to support change in pg syntax. A few minor changes to Dockerfile to improve readability, conform to docker best practices, and change to use npm ci to ensure future builds don't break again due to difference between package and package-lock.
20 lines
229 B
Docker
20 lines
229 B
Docker
FROM node:10-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
RUN npm install -g nodemon
|
|
|
|
COPY package*.json ./
|
|
|
|
RUN npm ci \
|
|
&& npm cache clean --force \
|
|
&& mv /app/node_modules /node_modules
|
|
|
|
COPY . .
|
|
|
|
ENV PORT 80
|
|
|
|
EXPOSE 80
|
|
|
|
CMD ["node", "server.js"]
|