mirror of
https://github.com/sailor-sh/CK-X.git
synced 2026-02-14 17:39:51 +00:00
22 lines
368 B
Docker
22 lines
368 B
Docker
FROM node:16-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy package.json and package-lock.json
|
|
COPY package*.json ./
|
|
|
|
# Install dependencies
|
|
RUN npm install --production
|
|
|
|
# Copy the application files
|
|
COPY server.js ./
|
|
COPY public/ ./public/
|
|
|
|
# Ensure the public directory exists
|
|
RUN mkdir -p /app/public
|
|
|
|
# Expose the port
|
|
EXPOSE 3000
|
|
|
|
# Start the application
|
|
CMD ["node", "server.js"] |