Skip to content

Commit

Permalink
test docker azure
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinhoareau committed Mar 24, 2024
1 parent b8de4dc commit 7064e01
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
18 changes: 11 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
# Définir l'image de base
FROM node:18
FROM node:18-alpine

# Créer le répertoire de l'application
WORKDIR /usr/src/app
COPY . .
WORKDIR /app

COPY package.json .

RUN npm install

COPY . .

RUN cd packages/client
RUN npm install
RUN yarn workspace client build

EXPOSE 8080
EXPOSE 5173

CMD ["npm", "run", "start:client"]
CMD [ "npm", "run", "start:client" ]
14 changes: 11 additions & 3 deletions packages/client/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,19 @@ dotenv.config({ path: path.resolve(__dirname, '.env') })

// https://vitejs.dev/config/
export default defineConfig({
base: "/",
plugins: [react()],
preview: {
port: 5173,
strictPort: true,
},
server: {
port: process.env.VITE_FRONT_PORT,
port: 5173,
strictPort: true,
host: true,
origin: "http://0.0.0.0:8080",
proxy: {
'/api': process.env.VITE_EXPRESS_URL,
},
}
},
})
});

0 comments on commit 7064e01

Please sign in to comment.