mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
feat: import file-graph package to app
* update docker images
This commit is contained in:
1 parent
638dff4be2
commit
0bdcce5d21
5 files changed
+17
-7
No files matched your search
+8
-4
@@ -1,14 +1,18 @@
|
||||
# Build stage
|
||||
FROM node as build-stage
|
||||
WORKDIR /app
|
||||
COPY app/package.json yarn.lock ./
|
||||
RUN yarn install
|
||||
COPY app .
|
||||
COPY package.json yarn.lock ./
|
||||
COPY app/package.json ./app/package.json
|
||||
COPY packages/file-graph/package.json ./packages/file-graph/package.json
|
||||
RUN yarn install --frozen-lockfile
|
||||
|
||||
COPY app ./app
|
||||
COPY packages/file-graph ./packages/file-graph
|
||||
RUN yarn build
|
||||
|
||||
# Production stage
|
||||
FROM nginx:stable-alpine as production-stage
|
||||
COPY --from=build-stage /app/dist /usr/share/nginx/html
|
||||
COPY --from=build-stage /app/app/dist /usr/share/nginx/html
|
||||
COPY deployment/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
EXPOSE 80
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
+5
-2
@@ -1,7 +1,10 @@
|
||||
FROM node
|
||||
|
||||
WORKDIR /app
|
||||
COPY app/package.json yarn.lock ./
|
||||
COPY package.json yarn.lock ./
|
||||
COPY app/package.json ./app/package.json
|
||||
COPY packages/file-graph/package.json ./packages/file-graph/package.json
|
||||
RUN yarn install --frozen-lockfile
|
||||
COPY app .
|
||||
|
||||
WORKDIR /app/app
|
||||
CMD [ "yarn", "dev:docker", "--host", "0.0.0.0" ]
|
||||
@@ -11,6 +11,7 @@
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"@linux-odyssey/file-graph": "*",
|
||||
"@fortawesome/fontawesome-svg-core": "^6.4.0",
|
||||
"@fortawesome/free-brands-svg-icons": "^6.4.0",
|
||||
"@fortawesome/free-regular-svg-icons": "^6.4.0",
|
||||
|
||||
+2
-1
@@ -9,7 +9,8 @@ services:
|
||||
networks:
|
||||
- internal
|
||||
volumes:
|
||||
- ./app/src:/app/src
|
||||
- ./app:/app/app
|
||||
- ./packages/file-graph:/app/packages/file-graph
|
||||
backend:
|
||||
build:
|
||||
context: .
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
"scripts": {
|
||||
"app": "yarn workspace app dev",
|
||||
"app:local": "yarn workspace app dev:local",
|
||||
"build": "yarn workspace app build",
|
||||
"server": "yarn workspace server dev",
|
||||
"cli": "yarn workspace client start",
|
||||
"lint": "eslint --ext .js,.vue .",
|
||||
|
||||
Reference in new issue
Block a user