Skip to content

Commit

Permalink
Update docker-setup.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Dushyantbha012 authored Dec 30, 2024
1 parent 5c975fb commit 9b316a9
Showing 1 changed file with 13 additions and 20 deletions.
33 changes: 13 additions & 20 deletions docs/frontend/docker-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,14 @@ This guide provides instructions for building and running the PictoPy frontend u

## Table of Contents

- [Docker Setup for PictoPy Frontend](#docker-setup-for-pictopy-frontend)
- [Table of Contents](#table-of-contents)
- [Prerequisites](#prerequisites)
- [Building the Docker Image](#building-the-docker-image)
- [Running the Container](#running-the-container)
- [Linux](#linux)
- [Windows](#windows)
- [Building the Tauri App](#building-the-tauri-app)
- [Linux](#linux-1)
- [Windows](#windows-1)
- [Accessing the GUI App](#accessing-the-gui-app)
- [Common Troubleshooting](#common-troubleshooting)
- [1. GUI Not Displaying (X Server Issues)](#1-gui-not-displaying-x-server-issues)
- [2. Network Issues](#2-network-issues)
1. [Prerequisites](#prerequisites)
2. [Building the Docker Image](#building-the-docker-image)
3. [Running the Container](#running-the-container)
- [Linux](#linux)
- [Windows](#windows)
4. [Accessing the GUI App](#accessing-the-gui-app)
5. [Common Troubleshooting](#common-troubleshooting)
6. [Notes on Cross-Platform Compatibility](#notes-on-cross-platform-compatibility)

## Prerequisites

Expand Down Expand Up @@ -63,12 +57,11 @@ This guide provides instructions for building and running the PictoPy frontend u
2. Run the container:

```bash
docker run -it -p 1420:1420 -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix <image_name>
```

3. Run the tauri application
```bash
npm run tauri dev
docker run -it --name frontend-container --network host -p 1420:1420 -e DISPLAY=${DISPLAY} \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v images-data:/app/images \
-v /:/host \
<image-name>
```

### Windows
Expand Down

0 comments on commit 9b316a9

Please sign in to comment.