15 lines
210 B
Docker
15 lines
210 B
Docker
FROM node:alpine
|
|
|
|
COPY package.json /data/
|
|
COPY package-lock.json /data/
|
|
COPY src /data/src
|
|
COPY public /data/public
|
|
|
|
RUN cd /data && npm i && npm test
|
|
|
|
WORKDIR /data
|
|
|
|
EXPOSE 8080
|
|
|
|
CMD ["node", "src/index.js"]
|