Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerfile, fix env for PRUNING (include/play.js) (#320)
- Loading branch information
1 parent
d498514
commit c88760e
Showing
2 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM node:12.19-slim | ||
|
||
ENV USER=evobot | ||
|
||
# install python and make | ||
RUN apt-get update && \ | ||
apt-get install -y python3 build-essential && \ | ||
apt-get purge -y --auto-remove | ||
|
||
# create evobot user | ||
RUN groupadd -r ${USER} && \ | ||
useradd --create-home --home /home/evobot -r -g ${USER} ${USER} | ||
|
||
# set up volume and user | ||
USER ${USER} | ||
WORKDIR /home/evobot | ||
|
||
COPY package*.json ./ | ||
RUN npm install | ||
VOLUME [ "/home/evobot" ] | ||
|
||
COPY . . | ||
|
||
ENTRYPOINT [ "node", "index.js" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters