modified dockerfile
This commit is contained in:
parent
a3f0d83304
commit
a4b19c9afa
8 changed files with 64 additions and 170 deletions
|
|
@ -1,16 +1,11 @@
|
|||
FROM node:18-alpine
|
||||
WORKDIR /app
|
||||
|
||||
# Install dependencies
|
||||
COPY package.json ./
|
||||
RUN npm install --production
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci --only=production
|
||||
|
||||
# Copy source and example env
|
||||
COPY src ./src
|
||||
COPY .env.example .env
|
||||
COPY snakeapi_service ./snakeapi_service
|
||||
|
||||
# Expose port
|
||||
EXPOSE 3006
|
||||
|
||||
# Start management service
|
||||
CMD ["npm", "start"]
|
||||
CMD ["node", "src/index.js"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue