Update dockerfile
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
FROM node:lts-alpine
|
FROM node:lts-alpine
|
||||||
|
|
||||||
# install simple http server for serving static content
|
# install simple http server for serving static content
|
||||||
RUN npm install -g http-server
|
RUN npm install -g serve
|
||||||
|
|
||||||
# make the 'app' folder the current working directory
|
# make the 'app' folder the current working directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
@@ -19,4 +19,4 @@ COPY . .
|
|||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
CMD [ "http-server", "dist" ]
|
CMD ["serve", "-s", "dist", "-l", "3000"]
|
||||||
Reference in New Issue
Block a user