Compare commits
4 Commits
main
...
24d3df7f2d
| Author | SHA1 | Date | |
|---|---|---|---|
| 24d3df7f2d | |||
| 1fcb525211 | |||
| e2b406946f | |||
| 74d95f08f5 |
@@ -1,4 +0,0 @@
|
|||||||
dist
|
|
||||||
node_modules
|
|
||||||
.git
|
|
||||||
.idea
|
|
||||||
26
Dockerfile
26
Dockerfile
@@ -1,26 +0,0 @@
|
|||||||
FROM node:20-alpine AS build
|
|
||||||
|
|
||||||
WORKDIR /build
|
|
||||||
|
|
||||||
# install packages first
|
|
||||||
COPY package* .
|
|
||||||
RUN npm ci
|
|
||||||
|
|
||||||
# copy everything else and run the build
|
|
||||||
COPY . .
|
|
||||||
RUN npm run build
|
|
||||||
|
|
||||||
FROM busybox:1.37 AS httpd
|
|
||||||
|
|
||||||
# add user to run web server as
|
|
||||||
RUN adduser -D static
|
|
||||||
USER static
|
|
||||||
WORKDIR /home/static
|
|
||||||
|
|
||||||
# copy build files from the node worker
|
|
||||||
COPY --from=build /build/dist /home/static
|
|
||||||
|
|
||||||
EXPOSE 3000
|
|
||||||
# run httpd in foreground, verbose, on port 3000
|
|
||||||
CMD ["busybox", "httpd", "-f", "-v", "-p", "3000"]
|
|
||||||
|
|
||||||
@@ -6,6 +6,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta name="color-scheme" content="light" />
|
<meta name="color-scheme" content="light" />
|
||||||
<title>Daily Time Tracking</title>
|
<title>Daily Time Tracking</title>
|
||||||
|
<script defer src="https://umami.knier.uk/script.js" data-website-id="8776a11a-9f28-49f4-9b95-87cf1317a9a1"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
|||||||
Reference in New Issue
Block a user