Files
eveship.fit/Dockerfile
2026-01-07 17:28:25 +01:00

33 lines
551 B
Docker

# Use Node.js 20 as base image (bun can run on Node.js)
FROM node:20-alpine
# Build argument for npm token
ARG NPM_TOKEN
# Install bun
RUN npm install -g bun
# Set working directory
WORKDIR /app
# Set npm token environment variable
ENV NPM_TOKEN=$NPM_TOKEN
# Copy package files and npm config
COPY package*.json .npmrc ./
# Install dependencies with bun
RUN bun install --frozen-lockfile
# Copy source code
COPY . .
# Build the application
RUN bun run build
# Expose port 3000
EXPOSE 3000
# Start the application
CMD ["bun", "run", "start"]