Convert to Vite project

This commit is contained in:
Luck
2025-01-05 12:02:59 +00:00
parent b31aea56e4
commit 5b2ca9bd19
18 changed files with 829 additions and 9296 deletions

View File

@@ -1,8 +1,8 @@
# Build stage
FROM node:lts as build
FROM node:lts AS build
ARG BYTEBIN_URL="data/"
ENV REACT_APP_BYTEBIN_URL="${BYTEBIN_URL}"
ENV VITE_BYTEBIN_URL="${BYTEBIN_URL}"
WORKDIR /app
COPY package.json yarn.lock ./
@@ -13,6 +13,6 @@ RUN yarn build
# Run stage
FROM nginx:alpine
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/build /usr/share/nginx/html
COPY --from=build /app/dist /usr/share/nginx/html
CMD ["nginx", "-g", "daemon off;"]
EXPOSE 80/tcp
EXPOSE 80/tcp