File size: 1,224 Bytes
1c8e50c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
49
50
FROM ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update \
    && apt-get install -y --no-install-recommends \
        curl \
        wget \
        gnupg \
        ca-certificates \
        openjdk-17-jdk-headless \
        netcat \
        build-essential \
        python3 \
        unzip \
        libcurl4 \
        libgssapi-krb5-2 \
        libssl3 \
        liblzma5 \
        tzdata \
    && rm -rf /var/lib/apt/lists/*

RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
    && apt-get update \
    && apt-get install -y --no-install-recommends nodejs \
    && rm -rf /var/lib/apt/lists/*

RUN curl -fsSL https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2204-6.0.15.tgz -o /tmp/mongodb.tgz \
    && tar -xzf /tmp/mongodb.tgz -C /opt \
    && mv /opt/mongodb-linux-x86_64-ubuntu2204-6.0.15 /opt/mongodb \
    && rm /tmp/mongodb.tgz \
    && mkdir -p /data/db

ENV PATH="/opt/mongodb/bin:${PATH}"

WORKDIR /app
COPY . .

RUN find . -name gradlew -exec chmod +x {} \; \
    && chmod +x build-all.sh hf-entrypoint.sh

ENV REACT_APP_API_BASE_URL=/api
RUN ./build-all.sh
RUN cd task-management-ui && npm prune --omit=dev

EXPOSE 7860
ENV PORT=7860

CMD ["/app/hf-entrypoint.sh"]