Skip to content

Commit 1dee56d

Browse files
committed
fix: updated to work with angular 8 and vscode remote container
1 parent 57e1a47 commit 1dee56d

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:lts-alpine
1+
FROM node:lts
22

33
# Install global npm packages
44
RUN npm i -g @angular/cli

docker-compose.seed.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
version: "3"
22
services:
33
seed:
4-
image: node:lts-alpine
4+
image: node:lts
55
working_dir: "/usr/src/seed"
66
volumes:
77
- ./:/usr/src/seed_output
88
entrypoint: >
9-
sh -c "npx @angular/cli new --skipInstall --skipGit &&
10-
mv ./*/* /usr/src/seed_output"
9+
bash -c "npm i @angular/cli <<< N && npx ng new --skipInstall --skipGit &&
10+
mv `ls -d */ | grep -v node_modules | xargs -I {} find {} -mindepth 1 -maxdepth 1` /usr/src/seed_output"

docker-compose.yml

+2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ services:
66
ports:
77
- "4200:4200"
88
environment:
9+
SHELL: /bin/bash
910
NODE_ENV: development
1011
volumes:
12+
- ~/.gitconfig:/etc/gitconfig
1113
- ./src:/usr/src/app/src:cached
1214
- ./e2e:/usr/src/app/e2e:cached
1315
- ./tsconfig.json:/usr/src/app/tsconfig.json

0 commit comments

Comments
 (0)