Skip to content

Commit

Permalink
fixed issues with build
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescrowley321 committed Feb 4, 2022
1 parent 13db8ae commit f73566e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ site

# Sensitive credentials
*-credentials.yaml
.idea
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 ./
Expand All @@ -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 . .
Expand Down
19 changes: 16 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit f73566e

Please sign in to comment.