butlerx
4 years ago
No known key found for this signature in database
GPG Key ID: B37CA765BAA89170
2 changed files with
5 additions and
9 deletions
-
containers/wetty/Dockerfile
-
package.json
|
@ -11,15 +11,10 @@ LABEL maintainer="butlerx@notthe.cloud" |
|
|
WORKDIR /usr/src/app |
|
|
WORKDIR /usr/src/app |
|
|
ENV NODE_ENV=production |
|
|
ENV NODE_ENV=production |
|
|
EXPOSE 3000 |
|
|
EXPOSE 3000 |
|
|
COPY --from=builder /usr/src/app/dist /usr/src/app/dist |
|
|
COPY --from=builder /usr/src/app/build /usr/src/app/build |
|
|
COPY --from=builder /usr/src/app/node_modules /usr/src/app/node_modules |
|
|
COPY --from=builder /usr/src/app/node_modules /usr/src/app/node_modules |
|
|
COPY package.json /usr/src/app |
|
|
COPY package.json /usr/src/app |
|
|
COPY index.js /usr/src/app |
|
|
|
|
|
RUN apk add -U openssh-client sshpass && \ |
|
|
RUN apk add -U openssh-client sshpass && \ |
|
|
mkdir ~/.ssh && \ |
|
|
mkdir ~/.ssh |
|
|
echo '#!/usr/bin/env sh' >> /entrypoint.sh && \ |
|
|
|
|
|
echo 'ssh-keyscan -H wetty-ssh >> ~/.ssh/known_hosts' >> /entrypoint.sh && \ |
|
|
|
|
|
echo 'node .' >> /entrypoint.sh && \ |
|
|
|
|
|
chmod +x /entrypoint.sh |
|
|
|
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/entrypoint.sh" ] |
|
|
ENTRYPOINT [ "yarn" , "docker-entrypoint"] |
|
|
|
@ -21,7 +21,8 @@ |
|
|
"start": "NODE_ENV=production node .", |
|
|
"start": "NODE_ENV=production node .", |
|
|
"contributor": "all-contributors", |
|
|
"contributor": "all-contributors", |
|
|
"test": "env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha -r ts-node/register src/**/*.spec.ts", |
|
|
"test": "env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha -r ts-node/register src/**/*.spec.ts", |
|
|
"clean": "rm -rf build yarn-error.log" |
|
|
"clean": "rm -rf build yarn-error.log", |
|
|
|
|
|
"docker-entrypoint": "ssh-keyscan -H wetty-ssh >> ~/.ssh/known_hosts; yarn start" |
|
|
}, |
|
|
}, |
|
|
"repository": { |
|
|
"repository": { |
|
|
"type": "git", |
|
|
"type": "git", |
|
|