mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-19 04:16:08 +00:00
Moves to docker for script execution
This commit is contained in:
1 parent
50edbab55a
commit
9e1a73ea08
3 files changed
+34
-3
No files matched your search
+21
@@ -0,0 +1,21 @@
|
|||||||
|
FROM ubuntu:20.04
|
||||||
|
|
||||||
|
ENV TERM xterm
|
||||||
|
RUN ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime
|
||||||
|
|
||||||
|
RUN apt-get -y update
|
||||||
|
RUN apt-get install -y nodejs npm curl wget dnsutils certbot --fix-missing
|
||||||
|
|
||||||
|
RUN npm i -g n yarn && n 15.11
|
||||||
|
|
||||||
|
RUN node -v
|
||||||
|
|
||||||
|
WORKDIR /opt/app
|
||||||
|
|
||||||
|
COPY yarn.lock .
|
||||||
|
COPY package.json .
|
||||||
|
|
||||||
|
RUN yarn install
|
||||||
|
|
||||||
|
CMD ["sh", "-c", "cp -r node_modules code; cd code; tail -f /dev/null"]
|
||||||
|
|
||||||
+5
-3
@@ -5,10 +5,12 @@ let
|
|||||||
nixPackages = with pkgs; [
|
nixPackages = with pkgs; [
|
||||||
nodejs-15_x
|
nodejs-15_x
|
||||||
yarn
|
yarn
|
||||||
dnsutils
|
docker-compose
|
||||||
certbot
|
#dnsutils
|
||||||
|
#certbot
|
||||||
];
|
];
|
||||||
in pkgs.stdenv.mkDerivation {
|
in
|
||||||
|
pkgs.stdenv.mkDerivation {
|
||||||
name = "env";
|
name = "env";
|
||||||
buildInputs = nixPackages;
|
buildInputs = nixPackages;
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
dev:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: ./Dockerfile
|
||||||
|
volumes:
|
||||||
|
- ./:/opt/app/code
|
||||||
Reference in new issue
Block a user