Trying to get a dokku build :)

This commit is contained in:
2025-10-07 22:01:08 +01:00
parent 365bbb11f9
commit 0aae6aebfd
14 changed files with 410 additions and 135 deletions

28
Dockerfile Normal file
View File

@@ -0,0 +1,28 @@
FROM node:22.14.0-alpine
WORKDIR /app
# Install pnpm
RUN npm install -g pnpm
# Copy package.json and pnpm-lock.yaml
COPY package.json pnpm-lock.yaml* ./
# Install dependencies
RUN pnpm install
# Copy the rest of the application code
COPY . .
# Create a volume mount point for sensitive data
VOLUME /app/data
# Expose the port the app runs on
#EXPOSE 5000
# Create a startup script that initializes the database and starts the application
COPY docker-entrypoint.sh /app/
RUN chmod +x /app/docker-entrypoint.sh
# Command to run the startup script
CMD ["/app/docker-entrypoint.sh"]