diff --git a/.gitignore b/.gitignore index d16a8d3..080f051 100644 --- a/.gitignore +++ b/.gitignore @@ -37,3 +37,4 @@ site # Sensitive credentials *-credentials.yaml +.idea \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 892dddc..67e4935 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Stage 1 - Create yarn install skeleton layer -FROM node:14-buster-slim AS packages +FROM node:14 AS packages WORKDIR /app COPY package.json yarn.lock ./ @@ -11,11 +11,12 @@ COPY packages packages RUN find packages \! -name "package.json" -mindepth 2 -maxdepth 2 -exec rm -rf {} \+ # Stage 2 - Install dependencies and build packages -FROM node:14-buster-slim AS build +FROM node:14 AS build WORKDIR /app COPY --from=packages /app . -RUN apt update && apt install python -y +RUN apt-get update -y && apt-get install python make gcc g++ -y +RUN npm install -g node-gyp RUN yarn install --frozen-lockfile --network-timeout 600000 && rm -rf "$(yarn cache dir)" COPY . . diff --git a/docker-compose.yml b/docker-compose.yml index d6aead5..0e01385 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,12 +1,25 @@ version: '3.4' services: - redis: - image: 'redis:alpine' + backstage: + container_name: backstage_container + image: sourcefuse/sourcefuse-backstage + build: . + environment: + POSTGRES_HOST: postgres + POSTGRES_PORT: 5432 + POSTGRES_USER: ${POSTGRES_USER:-postgres} + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme} + GITHUB_TOKEN: 'test' + GITHUB_CLIENT_ID: 'test' + GITHUB_CLIENT_SECRET: 'test' ports: - - '6379:6379' + - '7000:7000' + - '7007:7007' + - '3000:3000' networks: - backstage + restart: always postgres: container_name: postgres_container