Add static files to docker container
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
parent
cbacbe5e7c
commit
e1340b68b8
2 changed files with 5 additions and 4 deletions
|
@ -13,5 +13,6 @@ FROM gcr.io/distroless/cc:latest
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=builder /app/target/release/paste-frontend /app/paste-frontend
|
COPY --from=builder /app/target/release/paste-frontend /app/paste-frontend
|
||||||
ADD templates /app/templates
|
ADD templates /app/templates
|
||||||
|
ADD static /app/static
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
CMD ["./paste-frontend"]
|
CMD ["./paste-frontend"]
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<script src="/static/scripts.js"></script>
|
<script src="/static/scripts.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/highlight.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/highlight.min.js"></script>
|
||||||
<body class="bg-zinc-800">
|
<body class="bg-zinc-800">
|
||||||
<div class="flex flex-col items-center space-y-12 hljs">
|
<div class="flex flex-col items-center space-y-12">
|
||||||
<h2 class="text-3xl font-bold text-gray-300">Obsolute Paste</h2>
|
<h2 class="text-3xl font-bold text-gray-300">Obsolute Paste</h2>
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<pre class="w-10/12 text-gray-100 border border-solid border-emerald-200 rounded bg-zinc-800p-2" id="pastecontent">{{paste_content}}</pre>
|
<pre class="w-10/12 text-gray-100 border border-solid border-emerald-200 rounded bg-zinc-800p-2" id="pastecontent">{{paste_content}}</pre>
|
||||||
|
|
Loading…
Reference in a new issue