add ddocker file dan beberapa page componen untuk templating
This commit is contained in:
No files matched your search
+24
@@ -0,0 +1,24 @@
|
||||
FROM node:22.14.0-alpine
|
||||
LABEL authors="FIRMAN STIM"
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app/src
|
||||
|
||||
# Copy package files first to leverage Docker cache
|
||||
COPY src/package*.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm install
|
||||
|
||||
# Copy the rest of the application code
|
||||
COPY src/ .
|
||||
|
||||
# Set host and port
|
||||
ENV HOST=0.0.0.0
|
||||
ENV PORT=3001
|
||||
|
||||
# Expose port
|
||||
EXPOSE 3000
|
||||
|
||||
# Start development server
|
||||
CMD ["npm", "run", "dev"]
|
||||
Reference in New Issue
Block a user