input komma and point by liters and pricePerLiter, IPhone problem
This commit is contained in:
@@ -4,11 +4,12 @@ FROM nginx:alpine
|
||||
# Remove default nginx website
|
||||
RUN rm -rf /usr/share/nginx/html/*
|
||||
|
||||
# Copy the built Flutter web app
|
||||
COPY ../. /usr/share/nginx/html/
|
||||
# Copy the built Flutter web app (exclude installDocker folder)
|
||||
COPY . /usr/share/nginx/html/
|
||||
RUN rm -rf /usr/share/nginx/html/installDocker
|
||||
|
||||
# Copy nginx configuration
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY installDocker/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
# Expose port 80 (internally, mapped to 8888 externally)
|
||||
EXPOSE 80
|
||||
|
||||
@@ -30,9 +30,11 @@ if [ "$(docker images -q $IMAGE_NAME)" ]; then
|
||||
docker rmi $IMAGE_NAME || true
|
||||
fi
|
||||
|
||||
# Build new Docker image
|
||||
# Build new Docker image (from parent directory to include web files)
|
||||
echo "🔨 Building Docker image..."
|
||||
docker build -t $IMAGE_NAME .
|
||||
cd ..
|
||||
docker build -f installDocker/Dockerfile -t $IMAGE_NAME .
|
||||
cd installDocker
|
||||
|
||||
# Run container
|
||||
echo "🚀 Starting container on port $PORT..."
|
||||
|
||||
Reference in New Issue
Block a user