diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index dc5f9752214aef5a7d03041c90146e6a0005f95f..e6fc8129100420d985eadb2867fc5f26fba45661 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -41,7 +41,7 @@ build-env:ubuntu: &build-docker
 make:
   stage: test
   script:
-    - source activate revtex-markdown-paper && make
+    - make
   artifacts:
     paths:
       - paper.pdf
diff --git a/Dockerfile b/Dockerfile
index 0f3a96cbc73ba9debc412cf99e29f5dfde327738..eae8ae5b1597ed101e788758566bbe2921f4aae3 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -31,7 +31,8 @@ RUN chmod +x /usr/bin/tini
 RUN mkdir /environments
 COPY environment.yml /environments/
 
-RUN conda-env create -f /environments/environment.yml
+RUN conda-env create -f /environments/environment.yml && \
+    echo "conda activate revtex-markdown-paper" >> ~/.bashrc
 
 ENTRYPOINT [ "/usr/bin/tini", "--" ]
 CMD [ "/bin/bash" ]