Files
lucko-paste/Dockerfile

19 lines
363 B
Docker
Raw Permalink Normal View History

2021-10-27 23:37:42 +01:00
# Build stage
2025-01-05 12:02:59 +00:00
FROM node:lts AS build
2021-10-27 23:37:42 +01:00
ARG BYTEBIN_URL="data/"
2025-01-05 12:02:59 +00:00
ENV VITE_BYTEBIN_URL="${BYTEBIN_URL}"
2021-10-27 23:37:42 +01:00
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn
COPY . ./
RUN yarn build
# Run stage
FROM nginx:alpine
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
2025-01-05 12:02:59 +00:00
COPY --from=build /app/dist /usr/share/nginx/html
2021-10-27 23:37:42 +01:00
CMD ["nginx", "-g", "daemon off;"]
2025-01-05 12:02:59 +00:00
EXPOSE 80/tcp