Skip to content

Commit

Permalink
Revert "dockerfy"
Browse files Browse the repository at this point in the history
This reverts commit c83c8b6.
  • Loading branch information
ainsofs committed Apr 10, 2024
1 parent 0395294 commit 12507a5
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 523 deletions.
1 change: 0 additions & 1 deletion .dockerignore

This file was deleted.

123 changes: 0 additions & 123 deletions .env-default

This file was deleted.

43 changes: 6 additions & 37 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,41 +1,10 @@
# Ignore vim swp files and gedit temp files
*.swp
*.*~
.vim

# eclipse settings files
.project
.pydevproject
.settings
.buildpath

# netbeans settings files
nbproject

# Ignore OS settings files
.DS_Store*
Thumbs.db
ehthumbs.db

# Ignore files generated by PhpStorm
.idea

# Ignore docker files
docker-compose.override.yml
docker-init/files

# and some random server stuff
.bash_history
.bashrc
errors.log
.docker-sync/
mutagen.yml.lock
.vscode

# svelete stuff
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example
node_modules/
/build
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
38 changes: 0 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,44 +60,6 @@ To create a production version of your app:
npm run build
```

## Working with Docker

You need docker and docker compose installed for the following steps.

Copy .env-default as .env

```bash
cp .env-default .env
```

Start containers

```bash
docker compose up -d
```

Access the dev environment on http://sso.docker.localhost:5173

To run node commands on CLI run:

```bash
docker compose exec node sh
```

Then execute your commands e.g. npm run build

### Tip: Use alias'

```bash
alias dlup='docker compose up -d; docker compose logs -f node'
alias dup='docker compose up -d'
alias dstop='docker compose stop'
alias dnode='docker compose exec node bash'
alias dlnode='docker compose logs -f node'
alias dc='docker compose'
```


You can preview the production build with `npm run preview`.

## Contributing
Expand Down
Loading

0 comments on commit 12507a5

Please sign in to comment.