Spaces:
Sleeping
Sleeping
| 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"] | |