comty/packages/wrapper/Dockerfile

28 lines
832 B
Docker
Executable File

FROM node:20-bookworm-slim
EXPOSE 5000
# Install dependencies
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt update
RUN apt install -y --no-install-recommends build-essential
RUN apt install -y --no-install-recommends curl
RUN apt install -y --no-install-recommends ffmpeg
RUN apt install -y --no-install-recommends yarn
RUN apt install -y --no-install-recommends git
RUN apt install -y --no-install-recommends ssh
RUN apt install -y --no-install-recommends ca-certificates
WORKDIR /home/node/app
USER node
EXPOSE 9000
COPY --chown=node:node ./package.json .
COPY --chown=node:node ./src ./src
RUN chmod -R 777 /home/node/app
RUN npm install
RUN export NODE_ENV=production
CMD ["npm", "run", "start"]