Skip to content

Commit

Permalink
feat: Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ybgbob committed Nov 14, 2023
1 parent f65d7e6 commit 209e6ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
3 changes: 1 addition & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ node_modules
.git
.gitignore
*.md
dist
build
dist
16 changes: 6 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,15 @@ FROM nginx:1.21
RUN ls
RUN pwd

# WORKDIR /app

# COPY package.json /app
# COPY pnpm-lock.yaml /app
WORKDIR /app
COPY build .

# COPY build .
# RUN echo 'build successful'

# Stage 1, based on Nginx, to have only the compiled app, ready for production with Nginx
RUN ls /app

RUN rm /usr/share/nginx/html
COPY build /usr/share/nginx/html
# Copy the default nginx.conf provided by tiangolo/node-frontend
# COPY --from=build-stage /nginx.conf /etc/nginx/conf.d/default.conf

RUN ls /usr/share/nginx/html

EXPOSE 80

Expand Down

0 comments on commit 209e6ab

Please sign in to comment.