first commit
This commit is contained in:
21
Dockerfile
Normal file
21
Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
||||
# stage 1 as builder
|
||||
FROM node:latest as builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy in the package file as well as other yarn
|
||||
# dependencies in the local directory, assuming the
|
||||
# yarn berry release module is inside .yarn/releases
|
||||
# already
|
||||
|
||||
COPY . .
|
||||
|
||||
# Install the dependencies and make the folder
|
||||
RUN yarn install
|
||||
|
||||
# Build the project and copy the files
|
||||
RUN yarn build
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
ENTRYPOINT ["yarn", "start"]
|
||||
Reference in New Issue
Block a user