mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
Compare commits
6 Commits
bigcapital
...
vercel-tes
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a854b42ce5 | ||
|
|
228ae71a1c | ||
|
|
71a8d3e77f | ||
|
|
4ddeb927cc | ||
|
|
708d971717 | ||
|
|
7781d092ca |
5
.github/workflows/docker-build.yml
vendored
5
.github/workflows/docker-build.yml
vendored
@@ -19,7 +19,7 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
IMAGE_NAME: abouhuolia/bigcapital-client
|
IMAGE_NAME: abouhuolia/bigcapital-webapp
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
setup-build-publish-deploy:
|
setup-build-publish-deploy:
|
||||||
@@ -50,8 +50,9 @@ jobs:
|
|||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
|
file: ./packages/webapp/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: ghcr.io/bigcapitalhq/client:latest
|
tags: ghcr.io/bigcapitalhq/webapp:latest
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
# Send notification to Slack channel.
|
# Send notification to Slack channel.
|
||||||
- name: Slack Notification built and published successfully.
|
- name: Slack Notification built and published successfully.
|
||||||
|
|||||||
5
.vercelignore
Normal file
5
.vercelignore
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
/*
|
||||||
|
!package.json
|
||||||
|
!package-lock.json
|
||||||
|
!yarn.lock
|
||||||
|
!packages/webapp
|
||||||
@@ -5,6 +5,9 @@ import './before';
|
|||||||
import express from 'express';
|
import express from 'express';
|
||||||
import loadersFactory from 'loaders';
|
import loadersFactory from 'loaders';
|
||||||
|
|
||||||
|
|
||||||
|
console.log("asdfasf");
|
||||||
|
|
||||||
async function startServer() {
|
async function startServer() {
|
||||||
const app = express();
|
const app = express();
|
||||||
|
|
||||||
|
|||||||
@@ -4,17 +4,20 @@ USER root
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY ./package.json /app/package.json
|
# Install dependencies
|
||||||
COPY ./package-lock.json /app/package-lock.json
|
COPY package.json ./
|
||||||
|
COPY lerna.json ./
|
||||||
|
|
||||||
|
COPY ./packages/webapp/package.json /app/packages/webapp/package.json
|
||||||
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
RUN npm run bootstrap
|
||||||
|
|
||||||
COPY . .
|
# Build webapp package
|
||||||
|
COPY ./packages/webapp /app/packages/webapp
|
||||||
RUN npm run build
|
RUN npm run build:webapp
|
||||||
|
|
||||||
FROM nginx
|
FROM nginx
|
||||||
|
|
||||||
COPY ./nginx/sites/default.conf /etc/nginx/conf.d/default.conf
|
COPY ./packages/webapp/nginx/sites/default.conf /etc/nginx/conf.d/default.conf
|
||||||
|
COPY --from=build /app/packages/webapp/build /usr/share/nginx/html
|
||||||
COPY --from=build /app/build /usr/share/nginx/html
|
|
||||||
|
|||||||
Reference in New Issue
Block a user