18 lines
278 B
Docker
18 lines
278 B
Docker
FROM node:16.17.0-alpine
|
|
|
|
LABEL author="Dan Wahlin"
|
|
|
|
ENV CONTAINER=true
|
|
|
|
WORKDIR /var/www/node-service
|
|
|
|
COPY package.json package-lock.json ./
|
|
RUN npm install --only=prod --no-optional
|
|
|
|
COPY ./server.js .
|
|
COPY ./api .
|
|
COPY ./data .
|
|
|
|
EXPOSE 8080
|
|
|
|
ENTRYPOINT ["node", "server.js"] |