updated Dockerfile
This commit is contained in:
parent
a591969fbf
commit
f9cb867dc3
1 changed files with 3 additions and 2 deletions
|
|
@ -2,13 +2,14 @@ FROM node:16-bullseye
|
|||
|
||||
WORKDIR /app
|
||||
COPY package.json ./
|
||||
RUN cat ./package.json
|
||||
RUN yarn install
|
||||
|
||||
COPY . ./
|
||||
RUN yarn gatsby telemetry --disable
|
||||
RUN yarn build
|
||||
RUN rm -rf ./src ./node_modules
|
||||
RUN rm -rf ./src
|
||||
|
||||
EXPOSE 9000
|
||||
|
||||
CMD [ "yarn", "serve", "-H", "0.0.0.0", "-p", "9000" ]
|
||||
CMD [ "yarn", "serve", "-H 0.0.0.0", "-p 9000" ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue