File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,12 +28,11 @@ RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSI
2828 && tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
2929 && rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
3030
31- COPY package.json yarn.lock /usr/src/app/
31+ COPY . /usr/src/app
3232RUN yarn install --ignore-engines --frozen-lockfile --production --network-concurrency 1 \
3333 && rm -rf /var/lib/apt/lists/* \
3434 && rm -rf ~/.node-gyp \
3535 && rm -rf /tmp/yarn-*
36- COPY . /usr/src/app
3736RUN yarn build
3837
3938# ###############################################################################
@@ -47,10 +46,11 @@ RUN apt-get update && \
4746WORKDIR /usr/src/app
4847
4948# Keep the .git directory in order to properly report version
49+ COPY . /usr/src/app
50+ COPY --from=builder /usr/src/app/dist ./dist/
5051COPY --from=builder /usr/src/app/node_modules ./node_modules/
5152COPY --from=builder /usr/local/bin/dockerize /usr/local/bin/
5253
53-
5454ENTRYPOINT ["/usr/src/app/docker-entrypoint.sh" ]
5555
5656EXPOSE 8900
You can’t perform that action at this time.
0 commit comments