add dockerfile
This commit is contained in:
parent
d791332b9f
commit
be14c4937a
2 changed files with 20 additions and 0 deletions
9
Dockerfile
Normal file
9
Dockerfile
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
FROM docker.io/sbtscala/scala-sbt:eclipse-temurin-24.0.1_9_1.11.2_3.7.1@sha256:ea5895a71c06a7eb1252e1e988d6863d0a7579fa60e4d6805bb8d4c59c5cf7ae
|
||||
COPY . /app
|
||||
RUN apt-get update && apt-get install -y lighttpd npm
|
||||
WORKDIR /app
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
COPY docker/lighttp.conf /app/lighttp.conf
|
||||
CMD ["lighttpd", "-D", "-f", "/app/lighttp.conf"]
|
||||
11
docker/lighttp.conf
Normal file
11
docker/lighttp.conf
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
server.document-root = "/dist"
|
||||
|
||||
server.port = 3000
|
||||
|
||||
# If running lighttpd earlier than lighttpd 1.4.71, uncomment (remove '#') to add the following:
|
||||
#mimetype.assign = (
|
||||
# ".html" => "text/html",
|
||||
# ".txt" => "text/plain",
|
||||
# ".jpg" => "image/jpeg",
|
||||
# ".png" => "image/png"
|
||||
#)
|
||||
Loading…
Reference in a new issue