style: Simplify Dockerfile by copying all server code in a single command
This commit is contained in:
@@ -9,9 +9,8 @@ COPY package*.json ./
|
||||
# Install dependencies
|
||||
RUN npm install --omit=dev
|
||||
|
||||
# Copy server code
|
||||
COPY server.js ./
|
||||
COPY database.js ./
|
||||
# Copy all server code
|
||||
COPY . .
|
||||
|
||||
# Expose ports
|
||||
EXPOSE 3001 3002
|
||||
|
||||
Reference in New Issue
Block a user