Files
myDrive/Dockerfile
T
Ayush Sehrawat b82c3665a1 feat(docker): add MongoDB and improve setup instructions (#82)
* feat(docker): add MongoDB and improve setup instructions

* fix: reduce docker image size and other minor improvements

* fix: reduce docker image size and other minor improvements

* docs: update README for correct env file naming

* feat(docker): add environment variables and enhance Docker instructions

* docs: update README structure and enhance installation instructions

* docs: update README to clarify requirements for Docker and non-Docker setups

* docs: update README to improve Docker instructions and formatting

* docs: update code blocks in README to use shell syntax highlighting

* docs: refine installation steps and environment variable instructions

* docs: enhance README formatting for Docker instructions

* docs: correct formatting for environment variable examples in README

* docs: enhance README with badges and improved formatting

* docs: improve Docker instructions and formatting in README

* docs: update README to use figure elements for image captions

* docs: update README to replace figure elements with markdown images

* docs: update README to use shell syntax highlighting for code blocks

* docs: fix typo in README for environment file renaming step
2025-03-01 17:27:32 -05:00

33 lines
557 B
Docker

FROM node:20-alpine AS builder
# Install build dependencies
RUN apk add --no-cache python3 make g++ ffmpeg && \
ln -sf python3 /usr/bin/python
WORKDIR /usr/app-production
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# Remove dev dependencies
RUN npm prune --production
FROM node:20-alpine
ENV FS_DIRECTORY=/data/
ENV TEMP_DIRECTORY=/temp/
# Install runtime dependencies
RUN apk add --no-cache ffmpeg
WORKDIR /usr/app-production
COPY --from=builder /usr/app-production .
EXPOSE 8080
EXPOSE 3000
CMD ["npm", "run", "start"]