simpleLedger/Dockerfile
chris 0ae3bda8be feat: Dockerize application and add features
- Add Dockerfile, .dockerignore, and docker-compose.yml to containerize the application.

- Update server.js to use a data directory for the database.

- Add SweetAlert for improved user experience.

- Add date filtering to the transactions page.

- Fix bug with saving split transactions.
2025-11-05 11:56:16 -05:00

21 lines
491 B
Docker

# Use an official Node.js runtime as a parent image
FROM node:18-alpine
# Set the working directory in the container
WORKDIR /usr/src/app
# Copy package.json and package-lock.json to the working directory
COPY package*.json ./
# Install app dependencies
RUN npm install
# Copy the rest of the application files to the working directory
COPY . .
# Make port 3000 available to the world outside this container
EXPOSE 3000
# Define the command to run your app
CMD [ "node", "server.js" ]