mirror of
https://github.com/He4eT/simple-spaceapi.git
synced 2026-05-05 01:47:24 +00:00
docker: simplify container
This commit is contained in:
parent
19ed645ed6
commit
8e2dfb8916
1 changed files with 3 additions and 6 deletions
11
Dockerfile
11
Dockerfile
|
|
@ -4,14 +4,11 @@ ENV PATH=/app/node_modules/.bin:$PATH
|
|||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json package-lock.json ./
|
||||
COPY package*.json .
|
||||
RUN npm ci --omit=dev
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN chown -R node:node /app
|
||||
USER node
|
||||
RUN npm run build
|
||||
|
||||
EXPOSE 1337
|
||||
CMD ["npm", "run", "start"]
|
||||
USER node
|
||||
|
||||
CMD ["npm", "start"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue