mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-28 16:00:52 +00:00
add a very basic docker image (#299)
This commit is contained in:
parent
5178a80a67
commit
f3fdd40187
20
Dockerfile
Normal file
20
Dockerfile
Normal 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
|
Loading…
Reference in New Issue
Block a user