Skip to content
Snippets Groups Projects
Commit 301486ff authored by Sam Galson's avatar Sam Galson
Browse files

remove offline-mirror after use

parent 7b355664
No related branches found
No related tags found
No related merge requests found
......@@ -5,15 +5,20 @@ COPY lerna.json .eslintignore .eslintrc .prettierrc .stylelintignore .stylelintr
COPY packages packages
RUN [ "yarn", "config", "set", "workspaces-experimental", "true" ]
# We do a development install because react-styleguidist is a dev dependency
RUN [ "yarn", "install", "--frozen-lockfile" ]
RUN [ "npm", "rebuild", "bcrypt", "--build-from-source=bcrypt"]
# Remove cache and offline mirror
RUN [ "yarn", "cache", "clean"]
RUN [ "rm", "-rf", "/npm-packages-offline-cache"]
ENV NODE_ENV "production"
# We are temporarily going to use the same image with different commands to deploy different apps in the monorepo. This is bad :(.
WORKDIR ${HOME}/packages/xpub-collabra
# TODO pass in username and password as build arguments
RUN [ "npx", "pubsweet", "build"]
## No xpub-ui to deploy yet
......@@ -22,7 +27,6 @@ RUN [ "npx", "pubsweet", "build"]
## Create file for kubernetes health checks
# RUN touch ./styleguide/health
EXPOSE 3000
WORKDIR ${HOME}
......
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