project push
This commit is contained in:
parent
12ef55e756
commit
2399a31aac
31 changed files with 20580 additions and 0 deletions
33
Dockerfile
Normal file
33
Dockerfile
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# Use the official Node.js Alpine image as the base image
|
||||
FROM node:18-alpine
|
||||
|
||||
# Set the working directory
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Install Chromium
|
||||
ENV CHROME_BIN="/usr/bin/chromium-browser" \
|
||||
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true" \
|
||||
NODE_ENV="production"
|
||||
RUN set -x \
|
||||
&& apk update \
|
||||
&& apk upgrade \
|
||||
&& apk add --no-cache \
|
||||
udev \
|
||||
ttf-freefont \
|
||||
chromium \
|
||||
ffmpeg
|
||||
|
||||
# Copy package.json and package-lock.json to the working directory
|
||||
COPY package*.json ./
|
||||
|
||||
# Install the dependencies
|
||||
RUN npm ci --only=production --ignore-scripts
|
||||
|
||||
# Copy the rest of the source code to the working directory
|
||||
COPY . .
|
||||
|
||||
# Expose the port the API will run on
|
||||
EXPOSE 3000
|
||||
|
||||
# Start the API
|
||||
CMD ["npm", "start"]
|
||||
Loading…
Reference in a new issue