Public Access
1
0

clean up docker config

This commit is contained in:
2025-08-09 19:35:58 -04:00
parent 092a397a32
commit 91443479ff
7 changed files with 24 additions and 84 deletions

View File

@@ -1,27 +1,12 @@
**/.classpath # Ignore the node_modules directory, as it will be installed inside the container
**/.dockerignore node_modules
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/charts
**/docker-compose*
**/compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
LICENSE
README.md
# Ignore Eleventy's default output directory # Ignore Eleventy's default output directory
_site _site
# Ignore npm debug logs
npm-debug.log
# Ignore Docker files
Dockerfile
docker-compose.yml

1
.env
View File

@@ -1 +0,0 @@
APP_URL=https://me.twk95.com

13
.vscode/launch.json vendored
View File

@@ -1,11 +1,16 @@
{ {
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [ "configurations": [
{ {
"name": "Containers: Node.js Launch", "type": "dockerfile",
"type": "docker",
"request": "launch", "request": "launch",
"preLaunchTask": "docker-run: debug", "name": "Docker: Build",
"platform": "node" "dockerfile": "Dockerfile",
"contextPath": "${workspaceFolder}"
} }
] ]
} }

39
.vscode/tasks.json vendored
View File

@@ -1,39 +0,0 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "docker-build",
"label": "docker-build",
"platform": "node",
"dockerBuild": {
"dockerfile": "${workspaceFolder}/Dockerfile",
"context": "${workspaceFolder}",
"pull": true
}
},
{
"type": "docker-run",
"label": "docker-run: release",
"dependsOn": [
"docker-build"
],
"platform": "node"
},
{
"type": "docker-run",
"label": "docker-run: debug",
"dependsOn": [
"docker-build"
],
"dockerRun": {
"env": {
"DEBUG": "*",
"NODE_ENV": "development"
}
},
"node": {
"enableDebugging": true
}
}
]
}

View File

@@ -1,10 +1,8 @@
FROM node:lts-alpine FROM node:lts-alpine
ENV NODE_ENV=production ENV NODE_ENV=production
WORKDIR /usr/src/app WORKDIR /app
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"] COPY package*.json ./
RUN npm install --production --silent && mv node_modules ../ RUN npm install
COPY . . COPY . .
EXPOSE 8080 EXPOSE 8080
RUN chown -R node /usr/src/app CMD [ "npx", "@11ty/eleventy", "--serve" ]
USER node
CMD [ "npx", "@11ty/eleventy", "--serve"]

View File

@@ -10,17 +10,10 @@ services:
# Mount the current directory on the host to /app in the container # Mount the current directory on the host to /app in the container
# This allows for live-reloading as you edit your files locally # This allows for live-reloading as you edit your files locally
volumes: volumes:
- .:/usr/src/app - .:/app
# Anonymize the node_modules directory to prevent conflicts with local modules
- /app/node_modules - /app/node_modules
restart: unless-stopped
labels: labels:
diun.enable: false diun.enable: false
homepage.group: Tools homepage.group: Tools
homepage.name: Eleventy homepage.name: Eleventy
homepage.icon: eleventy homepage.icon: eleventy
homepage.href: ${APP_URL}
networks: {}
x-dockge:
urls:
- ${APP_URL}

View File

@@ -2,7 +2,6 @@
title: "Test page!" title: "Test page!"
date: "2025-08-07" date: "2025-08-07"
layout: "post.njk" layout: "post.njk"
tags: "posts"
excerpt: This post is a feature showcase of what you can do with Eleventy excerpt: This post is a feature showcase of what you can do with Eleventy
--- ---