mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
added Dockerfile to marketplace server
This commit is contained in:
parent
cdd512dc5e
commit
94aadacd5f
22
packages/marketplace_server/Dockerfile
Executable file
22
packages/marketplace_server/Dockerfile
Executable file
@ -0,0 +1,22 @@
|
||||
FROM node:16-bullseye-slim
|
||||
|
||||
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
|
||||
|
||||
RUN apt update
|
||||
RUN apt install --no-install-recommends curl python yarn -y
|
||||
|
||||
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
|
||||
|
||||
WORKDIR /home/node/app
|
||||
USER node
|
||||
|
||||
EXPOSE 3010
|
||||
|
||||
COPY package.json ./
|
||||
COPY --chown=node:node . .
|
||||
|
||||
RUN chmod -R 777 /home/node/app
|
||||
RUN yarn install
|
||||
RUN yarn build
|
||||
|
||||
CMD ["node", "/home/node/app/dist/index.js"]
|
Loading…
x
Reference in New Issue
Block a user