Skip to content
Snippets Groups Projects
Dockerfile 532 B
Newer Older
FROM xpub/xpub:base
Sam Galson's avatar
Sam Galson committed

Bogdan Cochior's avatar
Bogdan Cochior committed
WORKDIR ${HOME}

COPY package.json yarn.lock ./
COPY lerna.json .babelrc .eslintignore .eslintrc .prettierrc .stylelintignore .stylelintrc ./
Sam Galson's avatar
Sam Galson committed
COPY packages packages

Bogdan Cochior's avatar
Bogdan Cochior committed
ENV NODE_ENV "development"

Sam Galson's avatar
Sam Galson committed
RUN [ "yarn", "config", "set", "workspaces-experimental", "true" ]
Sam Galson's avatar
Sam Galson committed
RUN [ "yarn", "install", "--frozen-lockfile" ]
RUN [ "yarn", "cache", "clean"]
RUN [ "rm", "-rf", "/npm-packages-offline-cache"]

WORKDIR ${HOME}/packages/xpub-faraday
ENV NODE_ENV "production"
RUN [ "npx", "pubsweet", "build"]
Sam Galson's avatar
Sam Galson committed
EXPOSE 3000