Skip to content

Commit

Permalink
fix: more docker related fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
evereq committed Dec 6, 2021
1 parent 629c8e5 commit 94ad5c6
Show file tree
Hide file tree
Showing 28 changed files with 271 additions and 9 deletions.
14 changes: 8 additions & 6 deletions .deploy/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ARG DB_TYPE
ARG DB_SSL_MODE
ARG DEMO

FROM node:16-alpine3.11 AS dependencies
FROM node:16-alpine3.14 AS dependencies

LABEL maintainer="ever@ever.co"

Expand Down Expand Up @@ -52,7 +52,7 @@ COPY --chown=node:node decorate-angular-cli.js lerna.json package.json yarn.lock
RUN yarn install --frozen-lockfile && yarn cache clean
# RUN apk del build-dependencies make gcc g++ python2 py2-setuptools vips-dev

FROM node:16-alpine3.11 AS prodDependencies
FROM node:16-alpine3.14 AS prodDependencies

RUN apk --update add bash && \
apk add --no-cache --virtual build-dependencies dos2unix gcc g++ git make python2 py2-setuptools vips-dev && \
Expand Down Expand Up @@ -84,7 +84,7 @@ RUN yarn install --frozen-lockfile --production && yarn cache clean

RUN rm -r node_modules/@angular

FROM node:16-alpine3.11 AS development
FROM node:16-alpine3.14 AS development

USER node:node

Expand All @@ -94,7 +94,7 @@ COPY --chown=node:node --from=dependencies /wait /entrypoint.prod.sh /entrypoint
COPY --chown=node:node --from=dependencies /srv/gauzy .
COPY . .

FROM node:16-alpine3.11 AS build
FROM node:16-alpine3.14 AS build

WORKDIR /srv/gauzy

Expand All @@ -111,7 +111,7 @@ ENV IS_DOCKER=true
RUN yarn build:package:api
RUN yarn build:api:prod

FROM node:16-alpine3.11 AS production
FROM node:16-alpine3.14 AS production

WORKDIR /srv/gauzy

Expand All @@ -130,7 +130,7 @@ COPY --chown=node:node --from=build /srv/gauzy/dist/apps/api .
RUN npm install pm2 -g && \
mkdir /import && chown node:node /import && \
touch ormlogs.log && chown node:node ormlogs.log && chown node:node wait && \
chmod +x wait && chown -R node:node apps/
chmod +x wait entrypoint.compose.sh entrypoint.prod.sh && chown -R node:node apps/

USER node:node

Expand All @@ -151,4 +151,6 @@ ENV DEMO=${DEMO:-false}

EXPOSE ${API_PORT}

ENTRYPOINT [ "./entrypoint.prod.sh" ]

CMD [ "pm2-runtime", "main.js" ]
6 changes: 3 additions & 3 deletions .deploy/webapp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ARG DEMO
ARG WEB_HOST
ARG WEB_PORT

FROM node:16-alpine3.11 AS dependencies
FROM node:16-alpine3.14 AS dependencies

LABEL maintainer="ever@ever.co"

Expand Down Expand Up @@ -56,7 +56,7 @@ COPY --chown=node:node decorate-angular-cli.js lerna.json package.json yarn.lock
RUN yarn install --frozen-lockfile && yarn cache clean
# RUN apk del build-dependencies make gcc g++ python2 py2-setuptools vips-dev

FROM node:16-alpine3.11 AS development
FROM node:16-alpine3.14 AS development

USER node:node

Expand All @@ -66,7 +66,7 @@ COPY --chown=node:node --from=dependencies /wait /entrypoint.compose.sh /entrypo
COPY --chown=node:node --from=dependencies /srv/gauzy .
COPY . .

FROM node:16-alpine3.11 AS build
FROM node:16-alpine3.14 AS build

WORKDIR /srv/gauzy

Expand Down
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ tmp
.cache
.github
.circle
.circleci
.npmrc
.husky
.travis.yml
greenkeeper.json
docker-compose*.yml
Expand All @@ -16,9 +18,11 @@ Jenkinsfile
node_modules
apps/api/node_modules
apps/desktop/node_modules
apps/desktop-timer/node_modules
apps/gauzy/node_modules
apps/gauzy-e2e/node_modules
packages/**/node_modules
packages/plugins/**/node_modules

# IDEs and editors
.idea
Expand Down
11 changes: 11 additions & 0 deletions apps/api/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.cache
.git
.gitignore
.gitmodules
README.md
docker
node_modules
tmp
build
dist
.env
11 changes: 11 additions & 0 deletions apps/desktop-timer/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.cache
.git
.gitignore
.gitmodules
README.md
docker
node_modules
tmp
build
dist
.env
11 changes: 11 additions & 0 deletions apps/desktop/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.cache
.git
.gitignore
.gitmodules
README.md
docker
node_modules
tmp
build
dist
.env
11 changes: 11 additions & 0 deletions apps/gauzy-e2e/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.cache
.git
.gitignore
.gitmodules
README.md
docker
node_modules
tmp
build
dist
.env
11 changes: 11 additions & 0 deletions apps/gauzy/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.cache
.git
.gitignore
.gitmodules
README.md
docker
node_modules
tmp
build
dist
.env
11 changes: 11 additions & 0 deletions apps/server/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.cache
.git
.gitignore
.gitmodules
README.md
docker
node_modules
tmp
build
dist
.env
10 changes: 10 additions & 0 deletions packages/auth/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git
.gitignore
.gitmodules
README.md
docker
node_modules
tmp
build
dist
.env
10 changes: 10 additions & 0 deletions packages/common-angular/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git
.gitignore
.gitmodules
README.md
docker
node_modules
tmp
build
dist
.env
10 changes: 10 additions & 0 deletions packages/common/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git
.gitignore
.gitmodules
README.md
docker
node_modules
tmp
build
dist
.env
10 changes: 10 additions & 0 deletions packages/config/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git
.gitignore
.gitmodules
README.md
docker
node_modules
tmp
build
dist
.env
10 changes: 10 additions & 0 deletions packages/contracts/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git
.gitignore
.gitmodules
README.md
docker
node_modules
tmp
build
dist
.env
10 changes: 10 additions & 0 deletions packages/core/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git
.gitignore
.gitmodules
README.md
docker
node_modules
tmp
build
dist
.env
10 changes: 10 additions & 0 deletions packages/desktop-api/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git
.gitignore
.gitmodules
README.md
docker
node_modules
tmp
build
dist
.env
10 changes: 10 additions & 0 deletions packages/desktop-libs/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git
.gitignore
.gitmodules
README.md
docker
node_modules
tmp
build
dist
.env
10 changes: 10 additions & 0 deletions packages/desktop-ui-lib/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git
.gitignore
.gitmodules
README.md
docker
node_modules
tmp
build
dist
.env
10 changes: 10 additions & 0 deletions packages/desktop-window/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git
.gitignore
.gitmodules
README.md
docker
node_modules
tmp
build
dist
.env
10 changes: 10 additions & 0 deletions packages/plugin/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git
.gitignore
.gitmodules
README.md
docker
node_modules
tmp
build
dist
.env
10 changes: 10 additions & 0 deletions packages/plugins/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git
.gitignore
.gitmodules
README.md
docker
node_modules
tmp
build
dist
.env
10 changes: 10 additions & 0 deletions packages/plugins/changelog/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git
.gitignore
.gitmodules
README.md
docker
node_modules
tmp
build
dist
.env
10 changes: 10 additions & 0 deletions packages/plugins/integration-ai/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git
.gitignore
.gitmodules
README.md
docker
node_modules
tmp
build
dist
.env
10 changes: 10 additions & 0 deletions packages/plugins/integration-hubstaff/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git
.gitignore
.gitmodules
README.md
docker
node_modules
tmp
build
dist
.env
10 changes: 10 additions & 0 deletions packages/plugins/integration-upwork/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git
.gitignore
.gitmodules
README.md
docker
node_modules
tmp
build
dist
.env
10 changes: 10 additions & 0 deletions packages/plugins/integration-wakatime/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git
.gitignore
.gitmodules
README.md
docker
node_modules
tmp
build
dist
.env
10 changes: 10 additions & 0 deletions packages/plugins/knowledge-base/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git
.gitignore
.gitmodules
README.md
docker
node_modules
tmp
build
dist
.env
10 changes: 10 additions & 0 deletions packages/plugins/product-reviews/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git
.gitignore
.gitmodules
README.md
docker
node_modules
tmp
build
dist
.env

0 comments on commit 94ad5c6

Please sign in to comment.