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
|
||||
COPY --from=builder /app/target/release/paste-frontend /app/paste-frontend
|
||||
ADD templates /app/templates
|
||||
ADD static /app/static
|
||||
EXPOSE 8080
|
||||
CMD ["./paste-frontend"]
|
||||
|
|
|
@ -8,11 +8,11 @@
|
|||
<script src="/static/scripts.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/highlight.min.js"></script>
|
||||
<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>
|
||||
{% 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>
|
||||
{% endblock 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>
|
||||
{% endblock content %}
|
||||
</div>
|
||||
<br/>
|
||||
<br/>
|
||||
|
|
Loading…
Reference in a new issue