Skip to content

Commit

Permalink
Use nginx to serve built files
Browse files Browse the repository at this point in the history
  • Loading branch information
nbr23 committed Apr 21, 2023
1 parent 2ff3d08 commit e8a62b4
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@ RUN npm run build

#---------------------------------------------------------------------------

# Create a clean python-based image with just the build results
FROM python:3-slim
WORKDIR /maputnik
# Create a clean nginx-alpine image with just the build results

COPY --from=builder /maputnik/build/build .
FROM nginx:alpine

EXPOSE 8888
CMD python -m http.server 8888
COPY --from=builder /maputnik/build/build /usr/share/nginx/html/

0 comments on commit e8a62b4

Please sign in to comment.