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

Pushing up dockerfile and pipeline files

parent dd1e0b16
No related branches found
No related tags found
No related merge requests found
Pipeline #10636 failed
stages: # List of stages for jobs, and their order of execution
- build
- test
- deploy
build-job: # This job runs in the build stage, which runs first.
stage: build
script:
- echo "Compiling the code..."
- npm run build
- echo "Compile complete."
test-job:
stage: test
script:
- echo "Running tests"
deploy-job: # This job runs in the deploy stage.
stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
environment: production
script:
- echo "Deploying application..."
- docker build -t $CI_REGISTRY_IMAGE .
- docker push $CI_REGISTRY_IMAGE
- echo "Application successfully deployed."
\ No newline at end of file
FROM node:18-alpine
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/
RUN npm ci
EXPOSE 5173
CMD ["npm", "run", "dev", "--", "--host"]
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