Skip to content

Commit

Permalink
update dockerfile to use the existing submodule instead of cloning th…
Browse files Browse the repository at this point in the history
…e repo for swagger-ui
  • Loading branch information
cbeyer42 committed Apr 1, 2020
1 parent 395f22c commit b236736
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/swagger-ui/node_modules
**/node_modules
9 changes: 3 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
FROM node:10 AS build
ENV SWAGGER_UI_TAG_VERSION=v3.25.0
WORKDIR /usr/share/build
RUN git clone https://github.com/cloudogu/swagger-ui.git \
&& cd swagger-ui \
&& git checkout ${SWAGGER_UI_TAG_VERSION} \
&& npm i \
&& npm run build
COPY / /usr/share/build/
WORKDIR /usr/share/build/swagger-ui
RUN npm i && npm run build

FROM registry.cloudogu.com/official/base:3.10.3-2
LABEL NAME="official/swagger-ui" \
Expand Down

0 comments on commit b236736

Please sign in to comment.