🥇 First commit
This commit is contained in:
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM node:lts-alpine
|
||||
|
||||
# Working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Install dependencies
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci --silent
|
||||
|
||||
# Copy source
|
||||
COPY . .
|
||||
|
||||
# Build and cleanup
|
||||
ENV NODE_ENV=production
|
||||
RUN npm run build \
|
||||
&& npm prune
|
||||
|
||||
# Start server
|
||||
CMD ["npm", "start"]
|
||||
Reference in New Issue
Block a user