mirror of https://github.com/dnomd343/sub-web
CareyWong
5 years ago
1 changed files with 16 additions and 0 deletions
@ -0,0 +1,16 @@ |
|||||
|
# ---- Dependencies ---- |
||||
|
FROM node:lts-alpine AS dependencies |
||||
|
WORKDIR /app |
||||
|
COPY package.json yarn.lock ./ |
||||
|
RUN yarn install |
||||
|
|
||||
|
# ---- Build ---- |
||||
|
FROM dependencies AS build |
||||
|
WORKDIR /app |
||||
|
COPY . /app |
||||
|
RUN yarn build |
||||
|
|
||||
|
FROM nginx:1.16-alpine |
||||
|
COPY --from=build /app/dist /usr/share/nginx/html |
||||
|
EXPOSE 80 |
||||
|
CMD [ "nginx", "-g", "daemon off;" ] |
Loading…
Reference in new issue