18 lines
278 B
Plaintext
18 lines
278 B
Plaintext
|
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"]
|