force rewrited code
This commit is contained in:
18
frontend/Dockerfile
Normal file
18
frontend/Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
FROM node:18-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package management files
|
||||
# Try to catch package-lock.json if it exists
|
||||
COPY package.json package-lock.json* ./
|
||||
|
||||
# Install dependencies (ignoring optional ones if they fail in alpine)
|
||||
RUN npm install
|
||||
|
||||
# Copy application source code
|
||||
COPY . .
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
# Start development server
|
||||
CMD ["npm", "start"]
|
||||
Reference in New Issue
Block a user