mirror of
https://github.com/donpat1to/Schichtenplaner.git
synced 2025-11-30 22:45:46 +01:00
fixed unreachable cache dir
This commit is contained in:
20
Dockerfile
20
Dockerfile
@@ -10,18 +10,26 @@ RUN apt-get update && apt-get install -y python3 python3-pip build-essential \
|
|||||||
# Create symlink so python3 is callable as python
|
# Create symlink so python3 is callable as python
|
||||||
RUN ln -sf /usr/bin/python3 /usr/bin/python
|
RUN ln -sf /usr/bin/python3 /usr/bin/python
|
||||||
|
|
||||||
# Copy backend files
|
# Copy root package files
|
||||||
COPY backend/package*.json ./
|
COPY package*.json ./
|
||||||
COPY backend/tsconfig.json ./
|
COPY tsconfig.base.json ./
|
||||||
|
|
||||||
|
# Copy workspace package files
|
||||||
|
COPY backend/package*.json ./backend/
|
||||||
|
COPY frontend/package*.json ./frontend/
|
||||||
|
|
||||||
# Install backend dependencies
|
# Install backend dependencies
|
||||||
RUN npm ci
|
RUN npm ci
|
||||||
|
|
||||||
# Copy backend source
|
# Copy source code
|
||||||
COPY backend/src/ ./src/
|
COPY backend/ ./backend/
|
||||||
|
COPY frontend/ ./frontend/
|
||||||
|
|
||||||
# Build backend
|
# Build backend
|
||||||
RUN npm run build
|
RUN npm run build --workspace=backend
|
||||||
|
|
||||||
|
# Build frontend
|
||||||
|
RUN npm run build --workspace=frontend
|
||||||
|
|
||||||
# Copy database files manually
|
# Copy database files manually
|
||||||
RUN cp -r src/database/ dist/database/
|
RUN cp -r src/database/ dist/database/
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
import React from 'react';
|
|
||||||
import { render, screen } from '@testing-library/react';
|
|
||||||
import App from './App';
|
|
||||||
|
|
||||||
test('renders learn react link', () => {
|
|
||||||
render(<App />);
|
|
||||||
const linkElement = screen.getByText(/learn react/i);
|
|
||||||
expect(linkElement).toBeInTheDocument();
|
|
||||||
});
|
|
||||||
@@ -8,7 +8,14 @@ export default defineConfig({
|
|||||||
server: {
|
server: {
|
||||||
port: 3003,
|
port: 3003,
|
||||||
host: true,
|
host: true,
|
||||||
open: true
|
open: true,
|
||||||
|
proxy: {
|
||||||
|
'/api': {
|
||||||
|
target: 'http://localhost:3002',
|
||||||
|
changeOrigin: true,
|
||||||
|
secure: false,
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
outDir: 'dist',
|
outDir: 'dist',
|
||||||
|
|||||||
Reference in New Issue
Block a user