beerchat_proxy/Dockerfile
dependabot[bot] 068950a0f2 Bump node from 16.3.0-alpine to 16.11.0-alpine
Bumps node from 16.3.0-alpine to 16.11.0-alpine.

---
updated-dependencies:
- dependency-name: node
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-12 12:55:56 +02:00

26 lines
386 B
Docker

# Stage 1 testing
FROM node:16.11.0-alpine
COPY package.json /data/
COPY package-lock.json /data/
COPY .jshintrc /data/
COPY src /data/src
RUN cd /data && npm i && npm test
# Stage 2 package
FROM node:16.11.0-alpine
COPY package.json /data/
COPY package-lock.json /data/
COPY src /data/src
RUN cd /data && npm i --only=production
WORKDIR /data
EXPOSE 8080
CMD ["npm", "start"]