Trying to get a dokku build :)
This commit is contained in:
28
Dockerfile
Normal file
28
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user