Skip to content
Snippets Groups Projects
Commit bada688b authored by Johann Ruiz's avatar Johann Ruiz
Browse files

Updating dockerfile

parent fb12b3fe
No related branches found
No related tags found
No related merge requests found
Pipeline #10640 passed
......@@ -5,10 +5,11 @@ WORKDIR /vtrc
COPY public/ /vtrc/public
COPY src/ /vtrc/src
COPY package.json package-lock.json tsconfig.json vite.config.ts tsconfig.node.json index.html .eslintrc.cjs /vtrc/
COPY vite.config-docker.ts /vtrc/vite.config.ts
RUN npm ci
EXPOSE 5173
RUN npm run build
CMD ["npm", "run", "dev"]
EXPOSE 8080
CMD ["npm", "run", "preview"]
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: { port: 80}
})
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
base: "/",
plugins: [react()],
server: { port: 5175}
})
preview: {
port: 8080,
strictPort: true,
},
server: {
port: 8080,
strictPort: true,
host: true,
origin: "http://0.0.0.0:8080",
},
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment