mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-30 08:50:50 +00:00
20 lines
307 B
Docker
20 lines
307 B
Docker
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 |