Refactoring
This commit is contained in:
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@@ -0,0 +1 @@
|
|||||||
|
node_modules
|
||||||
@@ -10,7 +10,9 @@ FROM base AS app
|
|||||||
RUN npm i -g serve
|
RUN npm i -g serve
|
||||||
WORKDIR ./app
|
WORKDIR ./app
|
||||||
# COPY ./app/dist ./app/dist
|
# COPY ./app/dist ./app/dist
|
||||||
COPY ./app ./app
|
COPY ./app .
|
||||||
|
RUN npm install
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
# CMD [ "serve", "-s", "app/dist", "-p", "8080" ]
|
# CMD [ "serve", "-s", "app/dist", "-p", "8080" ]
|
||||||
CMD ["npm", "run", "dev"]
|
CMD ["npm", "run", "dev"]
|
||||||
|
# ENTRYPOINT ["tail", "-f", "/dev/null"]
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "app",
|
"name": "app",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.14",
|
"version": "0.0.15",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
Reference in New Issue
Block a user