Skip to content

Commit

Permalink
Add make clean in CDK Dockerfile (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
weiliw-amz authored Jan 17, 2023
1 parent ac196c9 commit 1e9cba5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,6 @@ test: libpecos
clean:
rm ${VFLAG} -rf ./build ./dist ./*.egg-info
rm -f ./pecos/core/*.so .coverage*
rm -f ./pecos/_version.py
python3 -Bc "import pathlib; [p.unlink() for p in pathlib.Path('.').rglob('*.py[co]')]"
python3 -Bc "import pathlib; [p.rmdir() for p in pathlib.Path('.').rglob('__pycache__')]"
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ ADD README.md /pecos-source/README.md
ADD Makefile /pecos-source/Makefile
ADD setup.py /pecos-source/setup.py
ADD pecos /pecos-source/pecos/
RUN cd /pecos-source && make libpecos
RUN cd /pecos-source && make clean && make libpecos

# Setup user
RUN groupadd -r amazon && useradd --no-log-init -r -g amazon ecs-user
RUN echo "ecs-user ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
ENV USER ecs-user
ENV HOME /home/$USER
RUN echo $HOME
RUN chown -R ecs-user:amazon /home
RUN mkdir -p $HOME && chown -R ecs-user:amazon $HOME

# Enable password-less SSH
ENV SSHDIR $HOME/.ssh
Expand Down

0 comments on commit 1e9cba5

Please sign in to comment.