Skip to content

Commit

Permalink
Merge pull request #34 from educorvi/develop
Browse files Browse the repository at this point in the history
Fix docker build
  • Loading branch information
neferin12 authored Jul 2, 2024
2 parents 1e68e40 + 5b34321 commit 1562164
Show file tree
Hide file tree
Showing 5 changed files with 253 additions and 287 deletions.
5 changes: 2 additions & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
**/node_modules
**/temp
**/.env
common/temp
Dockerfile
docs
.github
.run
.git
.gitattributes
.gitignore
.prettierignore
.prettierrc.json
commitlint.config.js
Expand Down
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
FROM node:18-alpine as build
FROM node:18-alpine AS build

WORKDIR /app
RUN apk add jq moreutils
RUN corepack enable
RUN npm install -g @microsoft/rush
COPY . .
RUN jq '.buildCacheEnabled = false' common/config/rush/build-cache.json | sponge common/config/rush/build-cache.json
RUN rush update
RUN rush build --to-except rita-http
WORKDIR /app/rita-http
RUN rush-pnpm pack
RUN tar zxvf rita-http-*.tgz


FROM node:18-alpine as prod
FROM node:18-alpine AS prod
RUN apk add git

ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.9.0/wait /wait
Expand Down
Loading

0 comments on commit 1562164

Please sign in to comment.