Skip to content
Merged
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
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
FROM node:20-alpine

# Install build dependencies required by node-gyp
RUN apk add --no-cache python3 make g++ \
&& npm config set python /usr/bin/python3
# Install build dependencies for node-gyp
RUN apk add --no-cache python3 make g++

# Set environment variable for node-gyp to find Python
ENV PYTHON=/usr/bin/python3

# Create working directory
WORKDIR /opt/app

# Copy dependency files first (for layer caching)
# Copy dependency files
COPY package*.json ./
COPY babel.config.js tsconfig.json ./
COPY .env ./

# Install dependencies
RUN npm install

# Copy application source
# Copy source
COPY src ./src

# Build project
RUN npm run build

# Expose port
EXPOSE 3000

# Start app
CMD ["npm", "start"]