mushcatshiro
2 vuotta sitten
committed by
GitHub
vanhempi
commit
59aeb10b64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 muutettua tiedostoa jossa
14 lisäystä ja
0 poistoa
-
Dockerfile
|
|
@@ -0,0 +1,14 @@ |
|
|
|
FROM node:18-buster-slim |
|
|
|
|
|
|
|
RUN npm install -g http-server |
|
|
|
|
|
|
|
WORKDIR /src |
|
|
|
|
|
|
|
COPY . . |
|
|
|
|
|
|
|
RUN npm install |
|
|
|
|
|
|
|
RUN npm run build |
|
|
|
|
|
|
|
EXPOSE 8080 |
|
|
|
CMD [ "http-server", "dist" ] |