Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Node modules
node_modules
dist

# Testing
coverage
.nyc_output

# Logs
logs
*.log

# Cache
.cache

# IDE and editor files
.idea
.vscode
*.iml

# Git-related files
.git
.gitignore

# npm/yarn/pnpm cache and lockfiles (optional, uncomment if used)
.npm
# .yarn
# yarn.lock
# pnpm-lock.yaml

# Operating system files
.DS_Store
Thumbs.db

# Configuration files
.env

# Other temporary files
*.swp
*.swo
*~

# SIMPLE exclusive
learning-packages
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Use a Node base image
FROM node:22-alpine

# Set the working directory in the container
WORKDIR /app

# Copy React app
COPY . .

# Debug line as env file isn't supported yet...
RUN find /app/src -type f -exec sed -i "s/localhost/0\.0\.0\.0/g" "{}" \;

# Install dependencies
RUN npm install

# Expose the port your app runs on
EXPOSE 8000
EXPOSE 8001
EXPOSE 8080

# Start the application
CMD ["npm", "start"]