fix: let serverus run as root inside the container so it can read
whatever dir they mount
This commit is contained in:
parent
1db5905924
commit
9541c9ac0f
2 changed files with 1 additions and 4 deletions
|
@ -4,7 +4,6 @@ EXPOSE 8000
|
|||
WORKDIR /app
|
||||
|
||||
RUN mkdir /www
|
||||
RUN chown -R deno:deno /www
|
||||
RUN chmod -R 775 /www
|
||||
|
||||
# Cache the dependencies as a layer (the following two steps are re-run only when deps.ts is modified).
|
||||
|
@ -18,8 +17,6 @@ COPY README.md /app
|
|||
|
||||
RUN deno install --frozen
|
||||
|
||||
USER deno
|
||||
|
||||
ENV ROOT=/www
|
||||
ENV TRACE_ERROR_RESPONSES=true
|
||||
ENV SERVERUS_TYPESCRIPT_IMPORT_LOGGING=true
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@andyburke/serverus",
|
||||
"description": "A flexible HTTP server for mixed content. Throw static files, markdown, Typescript and (hopefully, eventually) more into a directory and serverus can serve it up a bit more like old-school CGI.",
|
||||
"version": "0.9.1",
|
||||
"version": "0.9.2",
|
||||
"license": "MIT",
|
||||
"exports": {
|
||||
".": "./serverus.ts",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue