Spaces:
Running
Running
File size: 631 Bytes
b3a514c b6bdfe1 b3a514c 28d4842 77171da b3a514c feeea65 b6bdfe1 b3a514c 4aa5695 b3a514c 4aa5695 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
FROM node:latest
RUN useradd -o -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH \
TMPDIR=$HOME/tmp
WORKDIR $HOME/app
COPY --chown=user . $HOME/app
USER root
RUN npm install -g serve
RUN wget --quiet https://github.com/duckdb/duckdb/releases/download/v0.9.2/duckdb_cli-linux-amd64.zip && \
unzip duckdb_cli-linux-amd64.zip && chmod +x duckdb && mv duckdb /usr/local/bin
USER user
RUN mkdir -p $TMPDIR # useless since /tmp already exists, but haha how could I know
RUN yarn && yarn build
# COPY --chown=user ./dist $HOME/app
EXPOSE 7860
CMD [ "serve", "-s", "dist" , "-p", "7860" ] |