1
0
Fork 0
mirror of https://github.com/bra1n/townsquare.git synced 2025-04-04 22:24:36 +00:00
townsquare/Dockerfile
2023-11-10 22:57:42 +00:00

11 lines
325 B
Docker

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