Skip to content
Snippets Groups Projects
Commit fe0fac70 authored by Jure's avatar Jure
Browse files

ci: reorder Dockerfile for efficiency

parent 3e125081
No related branches found
No related tags found
No related merge requests found
......@@ -6,14 +6,14 @@ WORKDIR ${HOME}
ENV NODE_ENV "development"
# Install dependencies for Cypress
RUN apt-get -y update && apt-get -y install xvfb libgtk-3-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2
COPY . .
# We do a development install because react-styleguidist is a dev dependency and we want to run tests
RUN [ "yarn", "install", "--frozen-lockfile" ]
# Install dependencies for Cypress
RUN apt-get -y update && apt-get -y install xvfb libgtk-3-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2
ENV NODE_ENV ${NODE_ENV}
RUN [ "npx", "pubsweet", "build"]
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment