cos tam dziala
This commit is contained in:
19
front/Dockerfile
Normal file
19
front/Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM oven/bun:latest
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json bun.lockb* ./
|
||||
RUN bun install
|
||||
|
||||
COPY . .
|
||||
|
||||
ARG VITE_API_URL
|
||||
ENV VITE_API_URL=$VITE_API_URL
|
||||
|
||||
RUN rm -f .env .env.*
|
||||
|
||||
RUN bun run build --mode production
|
||||
|
||||
EXPOSE 5173
|
||||
|
||||
CMD ["bun", "run", "preview", "--", "--host", "--port", "5173"]
|
||||
Reference in New Issue
Block a user