RelayServer / Dockerfile
Reality123b's picture
Create Dockerfile
9654539 verified
raw
history blame
422 Bytes
FROM node:18-alpine
# Install SQLite and other dependencies
RUN apk add --no-cache sqlite
# Create app directory
WORKDIR /usr/src/app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy app source
COPY . .
# Create directories for data and datasets
RUN mkdir -p /usr/src/app/data /usr/src/app/datasets
# Expose port
EXPOSE 3000
# Start the application
CMD ["node", "server.js"]