mirror of
https://github.com/pawelmalak/flame.git
synced 2025-08-05 02:45:18 +02:00
Dockerfile changes
This commit is contained in:
parent
08afaece2e
commit
b4eb35c591
4 changed files with 16 additions and 5 deletions
26
.docker/Dockerfile.dev
Normal file
26
.docker/Dockerfile.dev
Normal file
|
@ -0,0 +1,26 @@
|
|||
FROM node:lts-alpine as build-front
|
||||
|
||||
RUN apk add --no-cache curl
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY ./client .
|
||||
|
||||
RUN npm install --production \
|
||||
&& npm run build
|
||||
|
||||
FROM node:lts-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN mkdir -p ./public
|
||||
|
||||
COPY --from=build-front /app/build/ ./public
|
||||
|
||||
COPY package*.json ./
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
CMD ["npm", "run", "skaffold"]
|
Loading…
Add table
Add a link
Reference in a new issue