fix docker
This commit is contained in:
parent
25ef36487e
commit
73555ade0c
|
|
@ -0,0 +1,33 @@
|
|||
FROM node:latest as builder
|
||||
|
||||
# automatically creates the dir and sets it as the current working dir
|
||||
WORKDIR /usr/src/app
|
||||
# this will allow us to run vite and other tools directly
|
||||
ENV PATH /usr/src/node_modules/.bin:$PATH
|
||||
|
||||
# inject all environment vars we'll need
|
||||
ARG VITE_BACKEND_URL
|
||||
# expose the variable to the finished cotainer
|
||||
ENV VITE_BACKEND_URL=$VITE_BACKEND_URL
|
||||
|
||||
COPY package.json ./
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY . ./
|
||||
|
||||
RUN npm run build
|
||||
|
||||
FROM busybox:1.35
|
||||
|
||||
# Create a non-root user to own the files and run our server
|
||||
RUN adduser -D static
|
||||
USER static
|
||||
WORKDIR /home/static
|
||||
|
||||
# Copy the static website
|
||||
# Use the .dockerignore file to control what ends up inside the image!
|
||||
COPY --from=builder /usr/src/app/dist ./
|
||||
|
||||
# Run BusyBox httpd
|
||||
CMD ["busybox", "httpd", "-f", "-v", "-p", "3000"]
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
version: "3.7"
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: Dockerfile
|
||||
restart: unless-stopped
|
||||
|
|
@ -160,7 +160,7 @@
|
|||
<div>
|
||||
<ConfigProvider direction="rtl">
|
||||
|
||||
<Modal v-model:open="visible" title="نحوه پرداخت" :okButtonProps="{ style: {display:'none'} }">
|
||||
<Modal v-model:open="visible" title="نحوه پرداخت">
|
||||
<div class="grid gap-2">
|
||||
<p>لطفا مبلغ {{sumPrice.toLocaleString()}} تومان را به شماره کارت یا شماره شبای زیر واریز نمایید</p>
|
||||
<p>شماره کارت : 3395-3332-8619-6219</p>
|
||||
|
|
|
|||
Loading…
Reference in New Issue