run Dockerfile as root

This commit is contained in:
Siddharth Singh 2024-10-04 02:29:54 +05:30
parent 4f0f341f01
commit 018600058a
No known key found for this signature in database

View file

@ -5,9 +5,8 @@ ENV PORT 5000
WORKDIR /app WORKDIR /app
RUN mkdir -p data && chown -R deno data RUN mkdir -p data && chown -R deno data
USER deno
COPY . . COPY . .
RUN deno cache src/server.ts RUN deno cache src/server.ts
RUN apt-get update && apt-get install -y unzip curl RUN apt-get update && apt-get install -y unzip curl
RUN deno task soapbox RUN deno task soapbox
CMD deno task start CMD deno task start