remove bun user #8
This commit is contained in:
parent
fe65c7a54e
commit
b134b19876
1 changed files with 2 additions and 4 deletions
|
|
@ -47,10 +47,8 @@ COPY --from=install /temp/prod/node_modules node_modules
|
||||||
# COPY --from=prerelease /app/package.json .
|
# COPY --from=prerelease /app/package.json .
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# create folder data and set owner to bun
|
# create folder data
|
||||||
RUN mkdir -p /app/data && chown bun:bun /app/data
|
RUN mkdir -p /app/data && chmod 755 /app/data
|
||||||
|
|
||||||
# run the app
|
|
||||||
USER bun
|
|
||||||
EXPOSE 3000/tcp
|
EXPOSE 3000/tcp
|
||||||
ENTRYPOINT [ "bun", "run", "./src/index.tsx" ]
|
ENTRYPOINT [ "bun", "run", "./src/index.tsx" ]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue