Skip to content

Commit

Permalink
docker - set npm cache dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Headary committed Dec 23, 2023
1 parent 23fa5d5 commit 81e5a27
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 100 deletions.
1 change: 1 addition & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ EXPOSE 80

ENV MODE=prod
ENV NETTE_DEVEL=0
ENV npm_config_cache=/var/www/html/temp/cache/npm
97 changes: 0 additions & 97 deletions docker/apache.conf

This file was deleted.

4 changes: 2 additions & 2 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ services:
MODE: 'dev' # dev/prod; prod default
volumes:
- ..:/var/www/html # path to webs repository
- ./apache.conf:/etc/apache2/sites-available/000-default.conf # site config
- ./php.ini:/usr/local/etc/php/php-local.ini # site config
- ./config/apache.conf:/etc/apache2/sites-available/000-default.conf # site config
- ./config/php.ini:/usr/local/etc/php/php-local.ini # site config
ports:
- 8080-8084:8080-8084 # opened ports mapping, not needed with proxy
user: 1000:1000 # expects the main user with uid:pid
Expand Down
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "webs",
"scripts": {
"build": "webpack --mode=\"production\"",
"dev": "webpack --watch --mode=\"development\"",
Expand Down
1 change: 0 additions & 1 deletion php.ini

This file was deleted.

0 comments on commit 81e5a27

Please sign in to comment.