mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 06:10:31 +00:00
creates kubernetes friendly deployment
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM node:14.20-alpine as build
|
||||
FROM node:16-alpine as build
|
||||
|
||||
USER root
|
||||
|
||||
@@ -85,13 +85,23 @@ RUN chown node:node /
|
||||
|
||||
# Copy application dependency manifests to the container image.
|
||||
COPY ./package*.json ./
|
||||
COPY ./pnpm-lock.yaml ./
|
||||
COPY ./pnpm-workspace.yaml ./
|
||||
COPY ./packages/server/package*.json ./packages/server/
|
||||
|
||||
# RUN curl -fsSL https://get.pnpm.io/install.sh | sh -
|
||||
RUN npm install -g pnpm
|
||||
|
||||
COPY ./lerna.json ./lerna.json
|
||||
|
||||
# Install app dependencies for production.
|
||||
RUN npm install
|
||||
RUN npm run bootstrap
|
||||
RUN apk update
|
||||
RUN apk add python3 build-base chromium
|
||||
|
||||
# Set PYHTON env
|
||||
ENV PYTHON=/usr/bin/python3
|
||||
RUN pnpm install
|
||||
# RUN npm run bootstrap
|
||||
|
||||
COPY --chown=node:node ./packages/server ./packages/server
|
||||
|
||||
|
||||
@@ -120,6 +120,7 @@ module.exports = {
|
||||
* Redis storage configuration.
|
||||
*/
|
||||
redis: {
|
||||
url: process.env.REDIS_URL,
|
||||
port: 6379,
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user