add a very basic docker image (#299)

This commit is contained in:
Sam Korn 2024-03-07 12:22:51 -07:00 committed by GitHub
parent 5178a80a67
commit f3fdd40187
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

20
Dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM node:alpine as builder
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install
COPY . .
RUN yarn run build
FROM nginx:alpine
# Copy the static website files to the default Nginx serve directory
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 80
# Nginx will start automatically