diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8fa3c49 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +# Build +FROM node:18-alpine AS build + +WORKDIR /app + +COPY package.json yarn.lock ./ + +RUN yarn install + +COPY . . + +RUN yarn build + +# Serve +FROM nginx:stable-alpine AS runtime + +COPY --from=build /app /usr/share/nginx/html + +EXPOSE 80 + +CMD ["nginx", "-g", "daemon off;"] +