chore: add docker files for local development for backend and frontend
gitea/hedera-web/pipeline/pr-beta This commit looks good Details

This commit is contained in:
taro 2025-02-06 13:50:49 -03:00
parent 30dca813b6
commit c55d4b93ee
4 changed files with 33 additions and 3 deletions

View File

@ -1,2 +1,5 @@
debian
node_modules
node_modules
.quasar
build
.vscode

12
Dockerfile-front Normal file
View File

@ -0,0 +1,12 @@
FROM node:20-bookworm
RUN npm install -g pnpm@8
WORKDIR /hedera
COPY package.json pnpm-lock.yaml ./
RUN pnpm install
COPY . .
CMD [ "npm", "run", "front" ]

15
back/Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM php:8.2-cli
RUN apt-get update && apt-get install -y --no-install-recommends git
WORKDIR /usr/src
RUN git clone https://gitea.verdnatura.es/verdnatura/php-vn-lib.git
RUN docker-php-ext-install mysqli
WORKDIR /usr/src/hedera-web
COPY . .
WORKDIR /usr/src/hedera-web/back
CMD [ "php", "-S", "0.0.0.0:3002", "-t", ".", "index.php" ]

View File

@ -101,9 +101,9 @@ module.exports = configure(function (ctx) {
headers: { 'Access-Control-Allow-Origin': '*' },
// stats: { chunks: false },
proxy: {
'/api': 'http://localhost:3000',
'/api': 'http://salix-back:3000',
'/': {
target: 'http://localhost:3002',
target: 'http://hedera-back:3002',
bypass: req => (req.path !== '/' ? req.path : null)
}
}