-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
48 lines (35 loc) · 914 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM python:3.9-slim
# Install system dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
nodejs \
npm \
git \
expect
# Set working directory
WORKDIR /app
# Clone EWC repository
RUN git clone https://github.com/ThierryM1212/ewc.git
# Change working directory to the EWC directory
WORKDIR /app/ewc
# Install EWC dependencies
RUN npm install
# Build EWC
RUN npm run build
# Install EWC locally
RUN npm run localinstall
# Change working directory back to the parent directory
WORKDIR /app
# Copy necessary files
COPY entrypoint.sh .
COPY bouncer.py .
COPY requirements.txt .
COPY templates /app/templates
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Make the entrypoint script executable
RUN chmod +x entrypoint.sh
# Expose port 5000
EXPOSE 5000
# Set the entrypoint for the container
ENTRYPOINT ["./entrypoint.sh"]