wkplhc commited on
Commit
3521d29
·
verified ·
1 Parent(s): 9c50bd9

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.12-slim
2
+
3
+ RUN apt-get update && apt-get install -y curl gnupg nginx supervisor && \
4
+ curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
5
+ apt-get install -y nodejs && \
6
+ rm -rf /var/lib/apt/lists/*
7
+
8
+ RUN pip install --no-cache-dir uv
9
+
10
+ WORKDIR /app
11
+
12
+ COPY . /app
13
+
14
+ RUN npm install && \
15
+ cd frontend && npm install && npm run build && \
16
+ cd ../backend && uv sync
17
+
18
+ COPY nginx.conf.template /etc/nginx/sites-enabled/default.template
19
+ COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
20
+ COPY entrypoint.sh /entrypoint.sh
21
+
22
+ RUN chmod +x /entrypoint.sh
23
+
24
+ CMD ["/entrypoint.sh"]