15 lines
296 B
Docker
15 lines
296 B
Docker
FROM node:latest
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY package*.json ./
|
|
#RUN apk update && apk upgrade # && apk add --update alpine-sdk && apk add --update python
|
|
RUN npm install
|
|
# If you are building your code for production
|
|
# RUN npm ci --omit=dev
|
|
|
|
COPY . .
|
|
|
|
EXPOSE 8080
|
|
CMD [ "node", "src/index.js" ]
|