Skip to content

Commit

Permalink
Removed unused Docker image for development environment
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianLeChat committed Mar 2, 2025
1 parent 0529e27 commit 1402774
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 43 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
.DS_Store
*.pem
/logs
/docker-compose.override.yml
/compose.override.yml

# debug
npm-debug.log*
Expand Down
15 changes: 6 additions & 9 deletions docker-compose.yml → compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ services:
# https://hub.docker.com/_/varnish
varnish:
image: varnish:alpine
restart: always
depends_on:
- node
volumes:
Expand All @@ -15,17 +16,13 @@ services:
retries: 3
timeout: 5s
ports:
- "8080:80"
- "80:80"

# https://github.com/FlorianLeChat/Portfolio
node:
image: portfolio
restart: always
develop:
watch:
- action: sync
path: .
target: /usr/src/app
command: npm run start
volumes:
- ./logs:/usr/src/app/logs
healthcheck:
Expand All @@ -34,6 +31,6 @@ services:
timeout: 5s
build:
context: .
dockerfile: ./docker/Dockerfile.${NEXT_PUBLIC_ENV}
ports:
- "3000:3000"
dockerfile: ./docker/Dockerfile
expose:
- "3000"
5 changes: 1 addition & 4 deletions docker/Dockerfile.production → docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,4 @@ RUN npm run build && chown -R node:node .next
USER node

# Remove all development dependencies
RUN npm prune --production

# Run the website
CMD [ "npm", "run", "start" ]
RUN npm prune --production
29 changes: 0 additions & 29 deletions docker/Dockerfile.development

This file was deleted.

0 comments on commit 1402774

Please sign in to comment.