Compare commits

...

6 Commits

Author SHA1 Message Date
a.bouhuolia
a854b42ce5 asdfasdF 2023-02-13 21:29:07 +02:00
a.bouhuolia
228ae71a1c Merge https://github.com/bigcapitalhq/client into develop 2023-02-13 21:26:59 +02:00
a.bouhuolia
71a8d3e77f chore: add file to vercel 2023-02-13 21:26:46 +02:00
Ahmed Bouhuolia
4ddeb927cc Merge pull request #83 from bigcapitalhq/bigcapital-cli
feat(server): bigcapital cli commands
2023-02-13 20:51:03 +02:00
Ahmed Bouhuolia
708d971717 ci: change webapp package name. 2023-02-08 23:35:41 +02:00
Ahmed Bouhuolia
7781d092ca ci: webapp Github actions (#81) 2023-02-08 23:33:03 +02:00
4 changed files with 22 additions and 10 deletions

View File

@@ -19,7 +19,7 @@ on:
env:
REGISTRY: ghcr.io
IMAGE_NAME: abouhuolia/bigcapital-client
IMAGE_NAME: abouhuolia/bigcapital-webapp
jobs:
setup-build-publish-deploy:
@@ -50,8 +50,9 @@ jobs:
uses: docker/build-push-action@v2
with:
context: .
file: ./packages/webapp/Dockerfile
push: true
tags: ghcr.io/bigcapitalhq/client:latest
tags: ghcr.io/bigcapitalhq/webapp:latest
labels: ${{ steps.meta.outputs.labels }}
# Send notification to Slack channel.
- name: Slack Notification built and published successfully.

5
.vercelignore Normal file
View File

@@ -0,0 +1,5 @@
/*
!package.json
!package-lock.json
!yarn.lock
!packages/webapp

View File

@@ -5,6 +5,9 @@ import './before';
import express from 'express';
import loadersFactory from 'loaders';
console.log("asdfasf");
async function startServer() {
const app = express();

View File

@@ -4,17 +4,20 @@ USER root
WORKDIR /app
COPY ./package.json /app/package.json
COPY ./package-lock.json /app/package-lock.json
# Install dependencies
COPY package.json ./
COPY lerna.json ./
COPY ./packages/webapp/package.json /app/packages/webapp/package.json
RUN npm install
RUN npm run bootstrap
COPY . .
RUN npm run build
# Build webapp package
COPY ./packages/webapp /app/packages/webapp
RUN npm run build:webapp
FROM nginx
COPY ./nginx/sites/default.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/build /usr/share/nginx/html
COPY ./packages/webapp/nginx/sites/default.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/packages/webapp/build /usr/share/nginx/html