You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
400 B
Docker
21 lines
400 B
Docker
# 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"] |