Prvotní nástřel fungující aplikace
This commit is contained in:
23
client/Dockerfile
Normal file
23
client/Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
||||
FROM node:alpine AS builder
|
||||
|
||||
COPY package.json .
|
||||
COPY yarn.lock .
|
||||
COPY tsconfig.json .
|
||||
COPY .env.production .
|
||||
|
||||
RUN yarn install
|
||||
|
||||
COPY ./src ./src
|
||||
COPY ./public ./public
|
||||
|
||||
RUN yarn build
|
||||
|
||||
FROM node:alpine
|
||||
ENV NODE_ENV production
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /build .
|
||||
|
||||
RUN yarn global add serve && yarn
|
||||
CMD ["serve", "-s", "."]
|
||||
Reference in New Issue
Block a user