Spaces:
Yanz-GPT
/
Sleeping

ai / Dockerfile
fgsi's picture
Create Dockerfile
be6776c verified
raw
history blame contribute delete
929 Bytes
FROM mcr.microsoft.com/playwright:focal
ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
ENV TZ=Asia/Jakarta
ENV MADE=FONGSIDEVV2
ENV PORT=2008
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:deadsnakes/ppa && \
apt-get update && \
apt-get install -y python3.9 python3.9-venv python3.9-dev && \
rm -rf /var/lib/apt/lists/* && \
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ENV MADE=FONGSIDEVV2
ENV PORT=2008
WORKDIR /app
RUN --mount=type=secret,id=GITHUB_REPO,required=true \
git clone -b AI-SERVER $(cat /run/secrets/GITHUB_REPO) AI-SERVER
WORKDIR /app/AI-SERVER
RUN chmod -R 777 /app && \
npm cache clean --force && \
npm install --force && \
npx playwright install --with-deps
EXPOSE 2008
CMD ["npm", "start"]