Aeroklubben-IT/arbetsgrupp-live/Containerfile

28 lines
No EOL
459 B
Docker

FROM node:current
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
#RUN npm ci --omit=dev
RUN npm install -g pnpm
RUN pnpm pkg set pnpm.onlyBuiltDependencies[0]=better-sqlite3
RUN pnpm install
# Copy application code
COPY . .
# Create data directory for SQLite
RUN mkdir -p /app/data
# Expose port
EXPOSE 3000
# Set environment variables
ENV NODE_ENV=production
ENV PORT=3000
# Start the application
CMD ["pnpm", "start"]