Revert "creates kubernetes friendly deployment"

This reverts commit b42153bcc4.
This commit is contained in:
Ahmed Bouhuolia
2023-10-25 20:59:45 +02:00
parent d313774205
commit c498a100bc
10 changed files with 12 additions and 46 deletions

View File

@@ -1,4 +1,4 @@
FROM node:16-alpine as build
FROM node:14.15.0 as build
USER root
@@ -7,18 +7,11 @@ WORKDIR /app
# Install dependencies
COPY package*.json ./
COPY lerna.json ./
COPY pnpm-lock.yaml ./
COPY pnpm-workspace.yaml ./
COPY ./packages/webapp/package*.json /app/packages/webapp/
RUN apk update
RUN apk add python3 build-base chromium
ENV PYTHON=/usr/bin/python3
RUN npm install -g pnpm
RUN pnpm install
# RUN npm run bootstrap
RUN npm install
RUN npm run bootstrap
# Build webapp package
COPY ./packages/webapp /app/packages/webapp

View File

@@ -5,10 +5,5 @@ module.exports = {
alias: {
'@': path.resolve(__dirname, 'src'),
},
configure: {
resolve: {
fallback: { path: require.resolve('path-browserify') },
},
},
},
};

View File

@@ -5,8 +5,4 @@ server {
root /usr/share/nginx/html;
try_files $uri /index.html;
}
location /api {
proxy_pass http://localhost:3000;
}
}