mirror of
https://github.com/bra1n/townsquare.git
synced 2025-04-04 22:24:36 +00:00
10 lines
290 B
Docker
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"]
|