aki-008
commited on
Commit
·
4aa09b2
1
Parent(s):
10f9427
fix: remove citation tags and fix dockerignore syntax
Browse files- .dockerignore +0 -5
- Dockerfile +6 -5
.dockerignore
CHANGED
|
@@ -1,16 +1,11 @@
|
|
| 1 |
-
# Version Control
|
| 2 |
.git
|
| 3 |
.gitignore
|
| 4 |
-
|
| 5 |
-
# Dependencies & Environments
|
| 6 |
node_modules
|
| 7 |
venv
|
| 8 |
.venv
|
| 9 |
__pycache__
|
| 10 |
*.pyc
|
| 11 |
.env
|
| 12 |
-
|
| 13 |
-
# Database & Large Files
|
| 14 |
chroma_store
|
| 15 |
Backend/chroma_store
|
| 16 |
*.sqlite3
|
|
|
|
|
|
|
| 1 |
.git
|
| 2 |
.gitignore
|
|
|
|
|
|
|
| 3 |
node_modules
|
| 4 |
venv
|
| 5 |
.venv
|
| 6 |
__pycache__
|
| 7 |
*.pyc
|
| 8 |
.env
|
|
|
|
|
|
|
| 9 |
chroma_store
|
| 10 |
Backend/chroma_store
|
| 11 |
*.sqlite3
|
Dockerfile
CHANGED
|
@@ -4,7 +4,7 @@ WORKDIR /app/frontend
|
|
| 4 |
COPY Frontend/package*.json ./
|
| 5 |
RUN npm install
|
| 6 |
COPY Frontend/ .
|
| 7 |
-
RUN npm run build
|
| 8 |
|
| 9 |
# --- Stage 2: Runtime ---
|
| 10 |
FROM python:3.12-slim
|
|
@@ -13,7 +13,7 @@ FROM python:3.12-slim
|
|
| 13 |
RUN apt-get update && apt-get install -y \
|
| 14 |
nginx postgresql postgresql-contrib postgresql-client \
|
| 15 |
build-essential portaudio19-dev libpq-dev git \
|
| 16 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 17 |
|
| 18 |
# Add PostgreSQL bin directory to PATH for non-root user (adjust version if necessary)
|
| 19 |
ENV PATH="/usr/lib/postgresql/15/bin:$PATH"
|
|
@@ -34,9 +34,10 @@ COPY --chown=user Backend/ ./Backend/
|
|
| 34 |
COPY --chown=user --from=build-stage /app/frontend/dist /usr/share/nginx/html
|
| 35 |
|
| 36 |
# Copy Configs
|
| 37 |
-
|
| 38 |
-
COPY --chown=user
|
| 39 |
-
|
|
|
|
| 40 |
|
| 41 |
# Environment variables
|
| 42 |
ENV PORT=7860
|
|
|
|
| 4 |
COPY Frontend/package*.json ./
|
| 5 |
RUN npm install
|
| 6 |
COPY Frontend/ .
|
| 7 |
+
RUN npm run build
|
| 8 |
|
| 9 |
# --- Stage 2: Runtime ---
|
| 10 |
FROM python:3.12-slim
|
|
|
|
| 13 |
RUN apt-get update && apt-get install -y \
|
| 14 |
nginx postgresql postgresql-contrib postgresql-client \
|
| 15 |
build-essential portaudio19-dev libpq-dev git \
|
| 16 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 17 |
|
| 18 |
# Add PostgreSQL bin directory to PATH for non-root user (adjust version if necessary)
|
| 19 |
ENV PATH="/usr/lib/postgresql/15/bin:$PATH"
|
|
|
|
| 34 |
COPY --chown=user --from=build-stage /app/frontend/dist /usr/share/nginx/html
|
| 35 |
|
| 36 |
# Copy Configs
|
| 37 |
+
# FIX: Removed citation tags and extra slashes below
|
| 38 |
+
COPY --chown=user nginx.conf /etc/nginx/sites-available/default
|
| 39 |
+
COPY --chown=user start.sh ./start.sh
|
| 40 |
+
RUN chmod +x ./start.sh
|
| 41 |
|
| 42 |
# Environment variables
|
| 43 |
ENV PORT=7860
|