initial commit
This commit is contained in:
27
Dockerfile
Normal file
27
Dockerfile
Normal file
@@ -0,0 +1,27 @@
|
||||
FROM node:15 as build
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
COPY public ./public
|
||||
COPY src ./src
|
||||
COPY package.json .
|
||||
COPY yarn.lock .
|
||||
COPY tsconfig.json .
|
||||
|
||||
RUN yarn install
|
||||
RUN yarn build
|
||||
|
||||
|
||||
FROM nginx
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=build /build/build ./
|
||||
|
||||
COPY nginx.conf /etc/nginx/nginx.conf.template
|
||||
|
||||
COPY docker-entrypoint.sh /
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
ENTRYPOINT /docker-entrypoint.sh
|
||||
Reference in New Issue
Block a user