mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-22 01:31:25 -08:00
WIP dockerfile
This commit is contained in:
parent
55d6e6635b
commit
30bdf5afa0
2 changed files with 22 additions and 0 deletions
2
client/.dockerignore
Normal file
2
client/.dockerignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
node_modules
|
||||
npm-debug.log
|
20
client/Dockerfile
Normal file
20
client/Dockerfile
Normal file
|
@ -0,0 +1,20 @@
|
|||
FROM node:14 AS build
|
||||
|
||||
# This will henceforth be our app directory
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Copy both package.json and package-lock.json
|
||||
COPY package*.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm install
|
||||
|
||||
# Copy App source
|
||||
COPY . .
|
||||
|
||||
EXPOSE 8000
|
||||
CMD [ "npm", "start" ]
|
||||
|
||||
# RUN npm build
|
||||
# FROM scratch AS bin
|
||||
# COPY --from=build ./public /
|
Loading…
Add table
Reference in a new issue