You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
568 B

FROM node:16.20
LABEL org.opencontainers.image.authors="tendry@blastream.com"
#RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.lis
#RUN apt-get update
#RUN apt-get install -y nano
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
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" ]