townsquare/Dockerfile
2023-02-27 16:32:45 +00:00

10 lines
290 B
Docker

FROM node:16
RUN apt update && apt install -y\
git
WORKDIR /app
COPY package*.json .
RUN npm install
# npm rebuild avoids having misconfigurations if npm install has been run in the folder from windows before building the docker image
RUN npm rebuild
COPY . .
CMD ["npm","run","serve"]