mirror of
https://github.com/pawelmalak/snippet-box.git
synced 2025-12-25 23:03:31 +01:00
Initial server code. Building scripts
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM node:14-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json ./
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
# Build server code
|
||||
RUN npm run build
|
||||
|
||||
ENV NODE_ENV=production
|
||||
|
||||
CMD ["node", "build/server.js"]
|
||||
Reference in New Issue
Block a user