2022-06-28 13:55:54 +00:00
|
|
|
FROM node:16 as builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json yarn.lock /app/
|
|
|
|
COPY src /app/src/
|
|
|
|
COPY scripts /app/scripts
|
|
|
|
COPY public /app/public
|
|
|
|
COPY vite.config.js index.html embed.html /app/
|
2017-06-23 21:00:42 +00:00
|
|
|
|
2018-03-01 23:14:55 +00:00
|
|
|
RUN yarn install
|
2022-06-28 13:55:54 +00:00
|
|
|
RUN yarn build:deployment
|
2018-04-16 19:00:56 +00:00
|
|
|
|
2022-07-01 08:08:15 +00:00
|
|
|
FROM nginx:1.23.0-alpine as final
|
2022-06-28 13:55:54 +00:00
|
|
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
|
|
|
COPY docker/funkwhale.template /etc/nginx/conf.d/funkwhale.template
|
|
|
|
COPY docker/funkwhale_proxy.conf /etc/nginx/funkwhale_proxy.conf
|