mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Add frontend docker image builds.
This commit is contained in:
parent
040691006d
commit
07769b048f
3 changed files with 60 additions and 0 deletions
17
Dockerfile
Normal file
17
Dockerfile
Normal file
|
@ -0,0 +1,17 @@
|
|||
FROM node:current-alpine AS build
|
||||
|
||||
WORKDIR /app/
|
||||
|
||||
COPY package.json yarn.lock ./
|
||||
|
||||
RUN yarn install --prefer-offline
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN yarn build && sed -i 's/fonts.gstatic.com/fonts.kavin.rocks/g' dist/css/*.css
|
||||
|
||||
FROM nginx:alpine
|
||||
|
||||
COPY --from=build /app/dist/ /usr/share/nginx/html/
|
||||
|
||||
EXPOSE 80
|
Loading…
Add table
Add a link
Reference in a new issue