Browse Source

💚 Change relative paths to absolute paths in the Dockerfile & clean yarn cache

pull/2/head
anthony 5 years ago
parent
commit
afb07e13dc
  1. 2
      .circleci/config.yml
  2. 5
      Dockerfile

2
.circleci/config.yml

@ -3,7 +3,7 @@ version: 2.1
globals: globals:
images: images:
node: &node cimg/node:current
node: &node cimg/node:lts
postgres: &postgres circleci/postgres:9.6.5 postgres: &postgres circleci/postgres:9.6.5
caches: caches:
dependencies: &dependencies dependencies-{{ checksum "package.json" }} dependencies: &dependencies dependencies-{{ checksum "package.json" }}

5
Dockerfile

@ -4,13 +4,14 @@ WORKDIR /build
COPY . . COPY . .
RUN yarn install RUN yarn install
RUN yarn build RUN yarn build
RUN yarn cache clean
FROM node:lts FROM node:lts
WORKDIR /app WORKDIR /app
COPY --from=builder /build/dist ./dist
COPY --from=builder /build/package.json package.json
COPY --from=builder /build/dist /app/dist
COPY --from=builder /build/package.json /app/package.json
RUN yarn install --prod RUN yarn install --prod

Loading…
Cancel
Save