Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 61fac79

Browse files
authoredJan 14, 2025··
fix docker static assets (#27)
1 parent a9462b9 commit 61fac79

File tree

4 files changed

+12
-13
lines changed

4 files changed

+12
-13
lines changed
 

‎.gitignore

+2-4
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ node_modules
44
dist
55
*.log
66
.env
7-
static/style.css
8-
9-
# virtualenvs
107
.nvenv/
11-
.venv/
8+
.venv/
9+
static/style.css

‎Dockerfile

+4-5
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@ ENV HOST=0.0.0.0
1616
ENV PORT=3000
1717
EXPOSE 3000
1818
WORKDIR /app
19-
USER node
20-
COPY --chown=node:node package*.json ./
21-
COPY --chown=node:node static ./static
22-
COPY --chown=node:node src/views ./dist/views
23-
COPY --from=builder --chown=node:node /app/node_modules ./node_modules
19+
COPY --from=builder --chown=node:node /app/package*.json ./
20+
COPY --from=builder --chown=node:node /app/static ./static
21+
COPY --from=builder --chown=node:node /app/src/views ./dist/views
2422
COPY --from=builder --chown=node:node /app/dist ./dist
2523
RUN npm install --omit=dev
24+
USER node
2625
CMD ["npm", "start"]

‎package.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
{
2-
"version": "0.2.6",
2+
"version": "0.2.7",
33
"name": "tech-pizza-delivery-waiter",
44
"title": "Tech&Pizza Delivery Waiter",
55
"description": "A simple event delivery booking management system",
66
"owner": "GDG Valle d'Aosta",
77
"authors": [
8-
"Manuel Zavatta <manuel.zavatta@gmail.com>"
8+
"Manuel Zavatta <manuel.zavatta@gmail.com>",
9+
"Alain Martini <manuel.zavatta@gmail.com>",
10+
"Mirtilla Cecchi <mirtillacecchi@gmail.com>",
11+
"Giufus Anonymous <giufus@gmail.com>"
912
],
1013
"license": "MIT",
1114
"keywords": [
@@ -15,8 +18,8 @@
1518
],
1619
"main": "main.js",
1720
"scripts": {
18-
"build": "tsc && tailwindcss -i ./src/css/style.css -o ./static/style.css && cp -rp ./src/views ./dist",
1921
"start": "node dist/main.js",
22+
"build": "tsc && tailwindcss -i ./src/css/style.css -o ./static/style.css && cp -rp ./src/views ./dist",
2023
"watch": "concurrently \"nodemon --exec tsx src/main.ts\" \"tailwindcss -i ./src/css/style.css -o ./static/style.css --watch\""
2124
},
2225
"dependencies": {

‎tailwind.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@ module.exports = {
1111
filename: 'style.css'
1212
}
1313
}
14-

0 commit comments

Comments
 (0)
Please sign in to comment.