simPod
simPod

Reputation: 13486

Where are my files when using Gitlab docker build

I'm using gitlab CI to build docker image

image: docker:latest

services:
    - docker:dind

stages:
    - build

build:
    stage: build
    script:
        - docker build -t image/name .

However, I don't know where can I find my files from the repository in that image. Do I have to copy them somehow or I just missed their location?

I tried searching for the files using docker run image/name ls.

I can't find any mention about it in docs nor the internet.

EDIT: MY dockerfile for now contains only FROM debian:stretch

Upvotes: 0

Views: 767

Answers (1)

Stefan van Gastel
Stefan van Gastel

Reputation: 4478

If that is your Dockerfile, nothing happens. You have no ADD or COPY commands. Use them to add stuff to your image.

Also I recommend the https://docs.docker.com/get-started/ guide and this section to get your head around the concept: https://docs.docker.com/get-started/part2/#define-a-container-with-a-dockerfile

Upvotes: 1

Related Questions