feat: dockerfile publishing on release-10 branch
This commit is contained in:
parent
95df06250e
commit
4a27be33f5
4 changed files with 86 additions and 44 deletions
|
|
@ -1,40 +0,0 @@
|
|||
FROM alpine:3.14 as build-ui
|
||||
RUN apk add --no-cache nodejs npm git curl build-base python3
|
||||
|
||||
COPY ["new-lamassu-admin/package.json", "new-lamassu-admin/package-lock.json", "./"]
|
||||
|
||||
RUN npm version --allow-same-version --git-tag-version false --commit-hooks false 1.0.0
|
||||
RUN npm install
|
||||
|
||||
COPY new-lamassu-admin/ ./
|
||||
RUN npm run build
|
||||
|
||||
FROM alpine:3.14 as build
|
||||
RUN apk add --no-cache nodejs npm git curl build-base net-tools python3 postgresql-dev
|
||||
|
||||
WORKDIR lamassu-server
|
||||
|
||||
COPY ["package.json", "package-lock.json", "./"]
|
||||
RUN npm version --allow-same-version --git-tag-version false --commit-hooks false 1.0.0
|
||||
RUN npm install --production
|
||||
|
||||
COPY . ./
|
||||
|
||||
FROM alpine:3.14
|
||||
RUN apk add --no-cache nodejs npm git curl bash libpq openssl
|
||||
|
||||
COPY --from=build /lamassu-server /lamassu-server
|
||||
COPY --from=build-ui /build /lamassu-server/public
|
||||
|
||||
WORKDIR /lamassu-server/
|
||||
|
||||
RUN chmod +x bin/lamassu-server-entrypoint.sh
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
ENTRYPOINT [ "/lamassu-server/bin/lamassu-server-entrypoint.sh" ]
|
||||
|
||||
EXPOSE 443
|
||||
|
||||
ENTRYPOINT [ "node" ]
|
||||
CMD [ "/lamassu-server/bin/lamassu-admin-server" ]
|
||||
|
|
@ -10,15 +10,37 @@ RUN npm install --production
|
|||
COPY . ./
|
||||
|
||||
|
||||
FROM alpine:3.14
|
||||
FROM alpine:3.14 as l-s-base
|
||||
RUN apk add --no-cache nodejs npm git curl bash libpq openssl
|
||||
|
||||
COPY --from=build /lamassu-server /lamassu-server
|
||||
|
||||
WORKDIR /lamassu-server/
|
||||
|
||||
RUN chmod +x bin/lamassu-server-entrypoint.sh
|
||||
FROM l-s-base as l-s
|
||||
|
||||
RUN chmod +x /lamassu-server/bin/lamassu-server-entrypoint.sh
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
ENTRYPOINT [ "/lamassu-server/bin/lamassu-server-entrypoint.sh" ]
|
||||
|
||||
|
||||
FROM alpine:3.14 as build-ui
|
||||
RUN apk add --no-cache nodejs npm git curl build-base python3
|
||||
|
||||
COPY ["new-lamassu-admin/package.json", "new-lamassu-admin/package-lock.json", "./"]
|
||||
|
||||
RUN npm version --allow-same-version --git-tag-version false --commit-hooks false 1.0.0
|
||||
RUN npm install
|
||||
|
||||
COPY new-lamassu-admin/ ./
|
||||
RUN npm run build
|
||||
|
||||
|
||||
FROM l-s-base as l-a-s
|
||||
COPY --from=build-ui /build /lamassu-server/public
|
||||
|
||||
EXPOSE 443
|
||||
|
||||
ENTRYPOINT [ "node" ]
|
||||
CMD [ "/lamassu-server/bin/lamassu-admin-server" ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue