Multistage Dockerfile
A dev és a prod is tud működni docker imagekből, de erre kellett két dockerfile
This commit is contained in:
16
Dockerfile.dev
Normal file
16
Dockerfile.dev
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM node:20-alpine
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY package*.json ./
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
EXPOSE 5173
|
||||
|
||||
# A futtatási parancsot a compose adja, de kell az alap is a k8s-hez
|
||||
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0", "--port", "5173"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user