Skip to content
Snippets Groups Projects
Commit 50c1fd11 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

fix(cicd): image build

parent 7732250a
No related branches found
No related tags found
2 merge requests!27Recette,!26Dev
......@@ -7,13 +7,17 @@ WORKDIR /app
# A wildcard is used to ensure both package.json AND package-lock.json are copied
COPY package*.json ./
RUN npm install
RUN chgrp -R 0 /app && chmod -R g+rwX /app
RUN npm install --silent
# Bundle app source
COPY . .
COPY tsconfig.build.json .
COPY tsconfig.json .
COPY src src
RUN npm build
CMD ["sh","-c", "npm run start:prod"]
CMD npm run start:prod
EXPOSE 3000
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment