mirror of
https://gitlab.com/alemaire/buildx.git
synced 2025-01-11 02:53:30 +00:00
Compare commits
No commits in common. "10ffb413539f4290182507caa65bb557fd52e3ba" and "c97ef43629cb15bd0d569b6f09e65b55f2e51a40" have entirely different histories.
10ffb41353
...
c97ef43629
@ -1,18 +0,0 @@
|
||||
FROM node:12-alpine
|
||||
|
||||
RUN mkdir -p /usr/src/app/private
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY . /usr/src/app
|
||||
# We need dev deps to build the front end. We don't need Cypress, though.
|
||||
RUN NODE_ENV=development CYPRESS_INSTALL_BINARY=0 npm ci && \
|
||||
npm run build && \
|
||||
npm prune --production && \
|
||||
npm cache clean --force
|
||||
|
||||
# Run the server using production configs.
|
||||
ENV NODE_ENV production
|
||||
|
||||
CMD node server
|
||||
|
||||
EXPOSE 80
|
@ -13,8 +13,7 @@ decompress:
|
||||
|
||||
build:
|
||||
docker buildx build --platform linux/amd64,linux/arm64 --push \
|
||||
--cache-from=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
|
||||
--cache-from=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
|
||||
--cache-to=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
|
||||
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
|
||||
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) \
|
||||
--file Dockerfile shields-$(VERSION)
|
||||
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) shields-$(VERSION)
|
||||
|
Loading…
Reference in New Issue
Block a user