Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added docker image and compose #92

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:18-alpine

WORKDIR /app

COPY package.json ./

RUN npm install -g pnpm && pnpm install

COPY . .

CMD ["pnpm", "run", "dev"]
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
## QuickPic - Tools For Pictures (By Theo)

I wanted a better way to upscale svgs as pngs so I built it. Also wanted a better way to make images into squares. Open source because why not. Free because it only runs on client.

## Building and Running with Docker

To build and run the application using Docker and Docker Compose, follow these steps:

1. **Ensure Docker and Docker Compose are installed** on your machine. You can download them from [Docker's official website](https://www.docker.com/products/docker-desktop).

2. **Build the Docker image**:
```bash
docker-compose build
```

3. **Run the Docker container**:
```bash
docker-compose up
```

4. **Access the application**:
- Open your web browser and go to `http://localhost:3000` to view the application.

5. **Stopping the application**:
- To stop the application, press `Ctrl+C` in the terminal where Docker Compose is running.
- Alternatively, you can run:
```bash
docker-compose down
```

These steps will help you get the application up and running in a Docker container using Docker Compose.
13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: '3.5'

services:
app:
build:
context: .
dockerfile: Dockerfile
container_name: docker-next
ports:
- '3000:3000'
volumes:
- .:/app
- /app/node_modules