|
|
@ -12,6 +12,9 @@ RUN mkdir -p /home/node/app/node_modules |
|
|
|
|
|
|
|
WORKDIR /home/node/app |
|
|
|
|
|
|
|
# Copie des fichiers de configuration de Webpack |
|
|
|
COPY webpack.config.js ./ |
|
|
|
|
|
|
|
COPY package*.json ./ |
|
|
|
|
|
|
|
RUN npm install |
|
|
@ -20,6 +23,9 @@ RUN npm install nodemon --save-dev |
|
|
|
COPY . . |
|
|
|
#COPY .env . |
|
|
|
|
|
|
|
# Compilation des fichiers JS et SASS avec Webpack |
|
|
|
RUN npm run build |
|
|
|
|
|
|
|
EXPOSE 3100 |
|
|
|
|
|
|
|
CMD [ "npm", "run", "dev" ] |