mushcatshiro
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
14 additions and
0 deletions
-
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" ] |