cobalt-api / Dockerfile
Arifzyn's picture
Update Dockerfile
dbf2264 verified
raw
history blame contribute delete
457 Bytes
FROM node:20-alpine
# Set working directory
WORKDIR /app
# Install git, ffmpeg, bash
RUN apk add --no-cache git ffmpeg bash curl
# Install pnpm global
RUN npm install -g pnpm
# Clone repo Cobalt
RUN git clone https://github.com/Arifzyn19/cobalt.git /app/cobalt
# Masuk ke folder API
WORKDIR /app/cobalt/api
# Install dependencies via pnpm
RUN pnpm install --prod
# Expose port Hugging Face
ENV PORT=7860
EXPOSE 7860
# Start API
CMD ["pnpm", "start"]